OpenStructure
Public Member Functions
Transform Class Reference

#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)
 

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
 
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
 

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()

Transform ( )

Member Function Documentation

◆ Apply() [1/4]

AlignedCuboid Apply ( const AlignedCuboid c) const

◆ Apply() [2/4]

Transform Apply ( const Transform tf) const

◆ Apply() [3/4]

Vec3 Apply ( const Vec3 v) const

◆ Apply() [4/4]

Vec4 Apply ( const Vec4 v) const

◆ ApplyAxisRotation()

void ApplyAxisRotation ( float  delta,
const Vec3 axis 
)

◆ ApplyInverse() [1/2]

Vec3 ApplyInverse ( const Vec3 v) const

◆ ApplyInverse() [2/2]

Vec4 ApplyInverse ( const Vec4 v) const

◆ ApplyXAxisRotation()

void ApplyXAxisRotation ( float  delta)

rotate around x-axis

◆ ApplyXAxisTranslation()

void ApplyXAxisTranslation ( float  delta)

translation

◆ ApplyYAxisRotation()

void ApplyYAxisRotation ( float  delta)

◆ ApplyYAxisTranslation()

void ApplyYAxisTranslation ( float  delta)

◆ ApplyZAxisRotation()

void ApplyZAxisRotation ( float  delta)

◆ ApplyZAxisTranslation()

void ApplyZAxisTranslation ( float  delta)

◆ GetCenter()

Vec3 GetCenter ( ) const

retrieve center of rotation

◆ GetInvertedMatrix()

Mat4 GetInvertedMatrix ( ) const
inline

retrieve inverted transformation matrix

Definition at line 51 of file transform.hh.

◆ GetMatrix()

Mat4 GetMatrix ( ) const
inline

retrieve transformation matrix

Definition at line 47 of file transform.hh.

◆ GetRot()

Mat3 GetRot ( ) const

◆ GetTrans()

Vec3 GetTrans ( ) const

◆ GetTransposedMatrix()

Mat4 GetTransposedMatrix ( ) const
inline

retrieve transposed transformation matrix

Definition at line 49 of file transform.hh.

◆ GetXAxisRotation()

Mat3 GetXAxisRotation ( float  delta)

◆ GetYAxisRotation()

Mat3 GetYAxisRotation ( float  delta)

◆ GetZAxisRotation()

Mat3 GetZAxisRotation ( float  delta)

◆ Reset()

void Reset ( )
inline

reset to identity

Definition at line 44 of file transform.hh.

◆ SetCenter()

void SetCenter ( const Vec3 c)

set center of rotation

◆ SetMatrix()

void SetMatrix ( const Mat4 m)

◆ SetRot()

void SetRot ( const Mat3 r)

◆ SetTrans()

void SetTrans ( const Vec3 t)

The documentation for this class was generated from the following file: