Transform Class Reference

basic and essential transformation class, including translation, rotation and center of rotation More...

#include <transform.hh>

Public Member Functions

 Transform ()
void Reset ()
Mat4 GetMatrix () const
Mat4 GetTransposedMatrix () const
Mat4 GetInvertedMatrix () const
void SetCenter (const Vec3 &c)
Vec3 GetCenter () const
void SetMatrix (const Mat4 &m)
Vec3 Apply (const Vec3 &v) const
Vec4 Apply (const Vec4 &v) const
Vec3 ApplyInverse (const Vec3 &v) const
Vec4 ApplyInverse (const Vec4 &v) const
AlignedCuboid Apply (const AlignedCuboid &c) const
Transform Apply (const Transform &tf) const
rotation



void ApplyXAxisRotation (float delta)
void ApplyYAxisRotation (float delta)
void ApplyZAxisRotation (float delta)
void ApplyAxisRotation (float delta, const Vec3 &axis)
Mat3 GetXAxisRotation (float delta)
Mat3 GetYAxisRotation (float delta)
Mat3 GetZAxisRotation (float delta)
Mat3 GetRot () const
void SetRot (const Mat3 &r)



void ApplyXAxisTranslation (float delta)
void ApplyYAxisTranslation (float delta)
void ApplyZAxisTranslation (float delta)
void SetTrans (const Vec3 &t)
Vec3 GetTrans () const

Detailed Description

basic and essential transformation class, including translation, rotation and center of rotation

Definition at line 39 of file transform.hh.


Constructor & Destructor Documentation

Transform (  ) 

Member Function Documentation

Transform Apply ( const Transform tf  )  const
AlignedCuboid Apply ( const AlignedCuboid c  )  const
Vec4 Apply ( const Vec4 v  )  const
Vec3 Apply ( const Vec3 v  )  const
void ApplyAxisRotation ( float  delta,
const Vec3 axis 
)
Vec4 ApplyInverse ( const Vec4 v  )  const
Vec3 ApplyInverse ( const Vec3 v  )  const
void ApplyXAxisRotation ( float  delta  ) 

rotate around x-axis

void ApplyXAxisTranslation ( float  delta  ) 

translation

void ApplyYAxisRotation ( float  delta  ) 
void ApplyYAxisTranslation ( float  delta  ) 
void ApplyZAxisRotation ( float  delta  ) 
void ApplyZAxisTranslation ( float  delta  ) 
Vec3 GetCenter (  )  const

retrieve center of rotation

Mat4 GetInvertedMatrix (  )  const [inline]

retrieve inverted transformation matrix

Definition at line 51 of file transform.hh.

Mat4 GetMatrix (  )  const [inline]

retrieve transformation matrix

Definition at line 47 of file transform.hh.

Mat3 GetRot (  )  const
Vec3 GetTrans (  )  const
Mat4 GetTransposedMatrix (  )  const [inline]

retrieve transposed transformation matrix

Definition at line 49 of file transform.hh.

Mat3 GetXAxisRotation ( float  delta  ) 
Mat3 GetYAxisRotation ( float  delta  ) 
Mat3 GetZAxisRotation ( float  delta  ) 
void Reset (  )  [inline]

reset to identity

Definition at line 44 of file transform.hh.

void SetCenter ( const Vec3 c  ) 

set center of rotation

void SetMatrix ( const Mat4 m  ) 
void SetRot ( const Mat3 r  ) 
void SetTrans ( const Vec3 t  ) 

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1