OpenStructure
|
#include <transform.hh>
Public Member Functions | |
Transform () | |
geom::Mat4 | GetMatrix () const |
geom::Mat4 | GetTransposedMatrix () const |
void | SetCenter (const geom::Vec3 &c) |
geom::Vec3 | GetCenter () const |
void | SetMatrix (const geom::Mat4 &m) |
geom::Vec3 | Apply (const geom::Vec3 &v) const |
geom::Vec4 | Apply (const geom::Vec4 &v) const |
rotation | |
void | ApplyXAxisRotation (float delta) |
void | ApplyYAxisRotation (float delta) |
void | ApplyZAxisRotation (float delta) |
void | ApplyAxisRotation (float delta, const geom::Vec3 &axis) |
geom::Mat3 | GetXAxisRotation (float delta) |
geom::Mat3 | GetYAxisRotation (float delta) |
geom::Mat3 | GetZAxisRotation (float delta) |
geom::Mat3 | GetRot () const |
void | SetRot (const geom::Mat3 &r) |
void | ApplyXAxisTranslation (float delta) |
void | ApplyYAxisTranslation (float delta) |
void | ApplyZAxisTranslation (float delta) |
void | SetTrans (const geom::Vec3 &t) |
geom::Vec3 | GetTrans () const |
basic and essential transformation class, including translation, rotation and center of rotation
Definition at line 37 of file transform.hh.
Transform | ( | ) |
geom::Vec3 Apply | ( | const geom::Vec3 & | v | ) | const |
geom::Vec4 Apply | ( | const geom::Vec4 & | v | ) | const |
void ApplyAxisRotation | ( | float | delta, |
const geom::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 | ) |
geom::Vec3 GetCenter | ( | ) | const |
geom::Mat4 GetMatrix | ( | ) | const |
geom::Mat3 GetRot | ( | ) | const |
geom::Vec3 GetTrans | ( | ) | const |
geom::Mat4 GetTransposedMatrix | ( | ) | const |
geom::Mat3 GetXAxisRotation | ( | float | delta | ) |
geom::Mat3 GetYAxisRotation | ( | float | delta | ) |
geom::Mat3 GetZAxisRotation | ( | float | delta | ) |
void SetCenter | ( | const geom::Vec3 & | c | ) |
void SetMatrix | ( | const geom::Mat4 & | m | ) |
void SetRot | ( | const geom::Mat3 & | r | ) |
void SetTrans | ( | const geom::Vec3 & | t | ) |