|
OpenStructure
|
#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 |
basic and essential transformation class, including translation, rotation and center of rotation
Definition at line 39 of file transform.hh.
| Transform | ( | ) |
| AlignedCuboid Apply | ( | const AlignedCuboid & | c | ) | const |
| void ApplyAxisRotation | ( | float | delta, |
| const Vec3 & | axis | ||
| ) |
| 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
|
inline |
retrieve inverted transformation matrix
Definition at line 51 of file transform.hh.
|
inline |
retrieve transformation matrix
Definition at line 47 of file transform.hh.
| Mat3 GetRot | ( | ) | const |
| Vec3 GetTrans | ( | ) | 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 | ) |
|
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 | ) |