|
Nebula
|
#include <transform.h>
Simple transform using position, quaternion, and scale.
Public Member Functions | |
| transform () | |
| default constructor | |
| transform (const Math::vec3 &pos, const Math::quat &rot=Math::quat(), const Math::vec3 &scale=Math::_plus1) | |
| constructor 1 | |
| void | Set (const Math::vec3 &pos, const Math::quat &rot, const Math::vec3 &scale) |
| set content | |
| transform | GetRelative (const transform &child) |
| get the relative transform from this to child, expressed as matrix result = this * inv(child) | |
Static Public Member Functions | |
| static transform | FromMat4 (const Math::mat4 &mat) |
| transforms a vector (ignores position) | |
Public Attributes | |
| Math::vec3 | position |
| Math::quat | rotation |
| Math::vec3 | scale |
|
inline |
default constructor
|
inline |
constructor 1
|
inlinestatic |
transforms a vector (ignores position)
get the relative transform from this to child, expressed as matrix result = this * inv(child)
|
inline |
set content
| Math::vec3 Math::transform::position |
| Math::quat Math::transform::rotation |
| Math::vec3 Math::transform::scale |