|
| | Transform (const glm::vec3 &translation=glm::vec3(0.f), const glm::quat &rotation=glm::quat(1.f, 0.f, 0.f, 0.f), const glm::vec3 &scale=glm::vec3(1.f), const glm::vec3 &skew=glm::vec3(0.f), const glm::vec4 &perspective=glm::vec4(glm::vec3(0.f), 1.f)) |
| | Generate Transform from its translation, rotation, scale values.
|
| |
| | Transform (const glm::mat4 &model) |
| | Generate Transform from a model matrix.
|
| |
| const glm::vec3 & | getTranslation () const noexcept |
| | Get Translation component value of the transform.
|
| |
| const glm::vec3 & | getPosition () const noexcept |
| | Get Translation component value of the transform.
|
| |
| const glm::quat & | getRotation () const noexcept |
| | Get Rotation component value of the transform.
|
| |
| const glm::quat & | getOrientation () const noexcept |
| | Get orientation of the transform.
|
| |
| const glm::vec3 & | getScale () const noexcept |
| | Get Scaling component value of the transform.
|
| |
| const glm::vec3 & | getSkew () const noexcept |
| | Get Skew component value of the transform.
|
| |
| const glm::vec4 & | getPerspective () const noexcept |
| | get Perspective component value of the transform
|
| |
| void | setTranslation (const float x, const float y, const float z) noexcept |
| | Translate to the specified position, filled component wise.
|
| |
| void | setPosition (const float x, const float y, const float z) noexcept |
| | Translate to the specified position.
|
| |
| void | setPosition (const glm::vec3 &position) noexcept |
| | Translate to the specified position.
|
| |
| void | setRotation (const lit::Angle &x, const lit::Angle &y, const lit::Angle &z) noexcept |
| | Rotate the transform from Euler angles.
|
| |
| void | setRotation (const glm::quat &rotation) noexcept |
| | Rotate the transform using a quaternion.
|
| |
| void | setOrientation (const lit::Angle &x, const lit::Angle &y, const lit::Angle &z) noexcept |
| | Set orientation of transform using lit::Angle triad.
|
| |
| void | setOrientation (const glm::quat &rotation) noexcept |
| | Set orientation of the transform using a quaternion.
|
| |
| void | setScale (const float x, const float y, const float z) noexcept |
| | Set scaling.
|
| |
| void | relativeTranslate (const glm::vec3 &translation) noexcept |
| | Translate the transform from current position.
|
| |
| void | relativeTranslate (const float x, const float y, const float z) noexcept |
| | relative translate the transform from current position, component wise
|
| |
| void | loadFromModel (const glm::mat4 &model) noexcept |
| | Fill the transform from a model matrix.
|
| |
| void | relativeMove (const glm::vec3 &translation) noexcept |
| | Move the transform relative to current translation.
|
| |
| void | relativeRotate (const glm::quat &quaternion) noexcept |
| | Rotate the transform relative to current rotation.
|
| |
| void | relativeRotate (const float x, const float y, const float z) noexcept |
| | Rotate the transform from Euler angles (component wise)
|
| |
| void | relativeRotate (const lit::Angle &x, const lit::Angle &y, const lit::Angle &z) noexcept |
| | Relatively rotate the transform using a lit::Angle triad.
|
| |
| void | relativeScale (const glm::vec3 &scale) noexcept |
| | Multiply current scale by the new one.
|
| |
| void | setSkew (const glm::vec3 &skew) noexcept |
| | Set skew of the transform.
|
| |
| void | setPerspective (const glm::vec4 &perspective) noexcept |
| | Set perspective effect of the transform.
|
| |
| void | interpolateWith (const float ratio, const Transform &target) noexcept |
| | Interpolate this transform with another one.
|
| |
| void | fillFrom (const Transform &transform) noexcept |
| | Fill current values from another transform.
|
| |
| template<TranslationType T> |
| void | setTranslation (const T &translation) noexcept |
| | Translate to the specified position.
|
| |
| template<RotationType R> |
| void | setRotation (const R &rotation) noexcept |
| | Get rotation quaternion from a generic type.
|
| |
| template<ScaleType S> |
| void | setScale (const S &scale) noexcept |
| | Set scale vector from a generic type.
|
| |
| template<TranslationType T> |
| void | getTranslationAs (T &result) const noexcept |
| | Get translation vector and fill in generic type.
|
| |
| template<RotationType R> |
| void | getRotationAs (R &result) const noexcept |
| | Get rotation quaternion and fill in generic type.
|
| |
| template<ScaleType S> |
| void | getScaleAs (S &result) const noexcept |
| | Get scale vector and fill in generic type.
|
| |
| glm::mat4 | getModelMatrix () const noexcept |
| | Generate a Model matrix from the transform.
|
| |
| bool | isDirty () const noexcept |
| | Check if something modified this transform.
|
| |
Manage local Translation / Rotation / Scale of an entity in the world.