Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::physics::base::TransformState Class Reference

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...
 

Detailed Description

A class that represents the transformation of a 3D object in space.

Constructor & Destructor Documentation

om::physics::base::TransformState::TransformState ( )
inline

Create a new transform state with the default initial transform (identity).

Member Function Documentation

SIMDFloat4 om::physics::base::TransformState::transformToWorld ( const Vector3f &  point) const
inline

Transform the specified 3D point from local to world space for this transform state.

SIMDFloat4 om::physics::base::TransformState::transformToWorld ( const SIMDFloat4 &  point) const
inline

Transform the specified 3D SIMD point (x,y,z,0) from local to world space for this transform state.

void om::physics::base::TransformState::transformAABBToWorld ( const AABB3f &  aabb,
SIMDFloat4 &  worldMin,
SIMDFloat4 &  worldMax 
) const
inline

Transform the specified 3D SIMD bounding box from local to world space for this transform state.

SIMDFloat4 om::physics::base::TransformState::rotateToWorld ( const Vector3f &  point) const
inline

Rotate the specified 3D vector from local to world space for this transform state.

SIMDFloat4 om::physics::base::TransformState::rotateToWorld ( const SIMDFloat4 &  point) const
inline

Rotate the specified 3D SIMD vector (x,y,z,0) from local to world space for this transform state.

void om::physics::base::TransformState::rotateToWorld ( const SIMDFloat4 &  matX,
const SIMDFloat4 &  matY,
const SIMDFloat4 &  matZ,
SIMDFloat4 &  worldX,
SIMDFloat4 &  worldY,
SIMDFloat4 &  worldZ 
) const
inline

Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state.

void om::physics::base::TransformState::similarityTransform ( const SIMDFloat4 &  matX,
const SIMDFloat4 &  matY,
const SIMDFloat4 &  matZ,
SIMDFloat4 &  worldX,
SIMDFloat4 &  worldY,
SIMDFloat4 &  worldZ 
) const
inline

Rotate the specified 3x3 matrix (columns (x,y,z,0)) from local to world space for this transform state.

SIMDFloat4 om::physics::base::TransformState::transformToLocal ( const Vector3f &  point) const
inline

Transform the specified 3D point from world to local space for this transform state.

SIMDFloat4 om::physics::base::TransformState::transformToLocal ( const SIMDFloat4 &  point) const
inline

Transform the specified 3D SIMD point (x,y,z,0) from world to local space for this transform state.

SIMDFloat4 om::physics::base::TransformState::rotateToLocal ( const Vector3f &  point) const
inline

Rotate the specified 3D vector from world to local space for this transform state.

SIMDFloat4 om::physics::base::TransformState::rotateToLocal ( const SIMDFloat4 &  point) const
inline

Rotate the specified 3D SIMD vector (x,y,z,0) from world to local space for this transform state.

Member Data Documentation

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.


The documentation for this class was generated from the following file: