Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the transformation of a 3D object in space. More...
#include <omPhysicsTransformState.h>
Public Member Functions | |
TransformState () | |
Create a new transform state with the default initial transform (identity). More... | |
SIMDFloat4 | transformToWorld (const Vector3f &point) const |
Transform the specified 3D point from local to world space for this transform state. More... | |
SIMDFloat4 | transformToWorld (const SIMDFloat4 &point) const |
Transform the specified 3D SIMD point (x,y,z,0) from local to world space for this transform state. More... | |
void | transformAABBToWorld (const AABB3f &aabb, SIMDFloat4 &worldMin, SIMDFloat4 &worldMax) const |
Transform the specified 3D SIMD bounding box from local to world space for this transform state. More... | |
SIMDFloat4 | rotateToWorld (const Vector3f &point) const |
Rotate the specified 3D vector from local to world space for this transform state. More... | |
SIMDFloat4 | rotateToWorld (const SIMDFloat4 &point) const |
Rotate the specified 3D SIMD vector (x,y,z,0) from local to world space for this transform state. More... | |
void | rotateToWorld (const SIMDFloat4 &matX, const SIMDFloat4 &matY, const SIMDFloat4 &matZ, SIMDFloat4 &worldX, SIMDFloat4 &worldY, SIMDFloat4 &worldZ) const |
Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state. More... | |
void | similarityTransform (const SIMDFloat4 &matX, const SIMDFloat4 &matY, const SIMDFloat4 &matZ, SIMDFloat4 &worldX, SIMDFloat4 &worldY, SIMDFloat4 &worldZ) const |
Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state. More... | |
SIMDFloat4 | transformToLocal (const Vector3f &point) const |
Transform the specified 3D point from world to local space for this transform state. More... | |
SIMDFloat4 | transformToLocal (const SIMDFloat4 &point) const |
Transform the specified 3D SIMD point (x,y,z,0) from world to local space for this transform state. More... | |
SIMDFloat4 | rotateToLocal (const Vector3f &point) const |
Rotate the specified 3D vector from world to local space for this transform state. More... | |
SIMDFloat4 | rotateToLocal (const SIMDFloat4 &point) const |
Rotate the specified 3D SIMD vector (x,y,z,0) from world to local space for this transform state. More... | |
Public Attributes | |
SIMDFloat4 | p |
The position offset of the object's transform. More... | |
SIMDFloat4 | rX |
The X-column of the object's orthonormal rotation matrix. More... | |
SIMDFloat4 | rY |
The Y-column of the object's orthonormal rotation matrix. More... | |
SIMDFloat4 | rZ |
The Z-column of the object's orthonormal rotation matrix. More... | |
SIMDFloat4 | scale |
The local scale of the object's transform. More... | |
A class that represents the transformation of a 3D object in space.
|
inline |
Create a new transform state with the default initial transform (identity).
|
inline |
Transform the specified 3D point from local to world space for this transform state.
|
inline |
Transform the specified 3D SIMD point (x,y,z,0) from local to world space for this transform state.
|
inline |
Transform the specified 3D SIMD bounding box from local to world space for this transform state.
|
inline |
Rotate the specified 3D vector from local to world space for this transform state.
|
inline |
Rotate the specified 3D SIMD vector (x,y,z,0) from local to world space for this transform state.
|
inline |
Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state.
|
inline |
Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state.
|
inline |
Transform the specified 3D point from world to local space for this transform state.
|
inline |
Transform the specified 3D SIMD point (x,y,z,0) from world to local space for this transform state.
|
inline |
Rotate the specified 3D vector from world to local space for this transform state.
|
inline |
Rotate the specified 3D SIMD vector (x,y,z,0) from world to local space for this transform state.
SIMDFloat4 om::physics::base::TransformState::p |
The position offset of the object's transform.
SIMDFloat4 om::physics::base::TransformState::rX |
The X-column of the object's orthonormal rotation matrix.
SIMDFloat4 om::physics::base::TransformState::rY |
The Y-column of the object's orthonormal rotation matrix.
SIMDFloat4 om::physics::base::TransformState::rZ |
The Z-column of the object's orthonormal rotation matrix.
SIMDFloat4 om::physics::base::TransformState::scale |
The local scale of the object's transform.