CubbyFlow::Transform< N > Class Template Reference

Represents N-D rigid body transform. More...

#include <Core/Geometry/Transform.hpp>

Public Member Functions

 Transform ()=default
 Constructs identity transform. More...
 
 Transform (const Vector< double, N > &translation, const Orientation< N > &orientation)
 Constructs a transform with translation and orientation. More...
 
const Vector< double, N > & GetTranslation () const
 Returns the translation. More...
 
void SetTranslation (const Vector< double, N > &translation)
 Sets the translation. More...
 
const Orientation< N > & GetOrientation () const
 Returns the orientation. More...
 
void SetOrientation (const Orientation< N > &orientation)
 Sets the orientation. More...
 
Vector< double, N > ToLocal (const Vector< double, N > &pointInWorld) const
 Transforms a point in world coordinate to the local frame. More...
 
Vector< double, N > ToLocalDirection (const Vector< double, N > &dirInWorld) const
 Transforms a direction in world coordinate to the local frame. More...
 
Ray< double, N > ToLocal (const Ray< double, N > &rayInWorld) const
 Transforms a ray in world coordinate to the local frame. More...
 
BoundingBox< double, N > ToLocal (const BoundingBox< double, N > &bboxInWorld) const
 Transforms a bounding box in world coordinate to the local frame. More...
 
Vector< double, N > ToWorld (const Vector< double, N > &pointInLocal) const
 Transforms a point in local space to the world coordinate. More...
 
Vector< double, N > ToWorldDirection (const Vector< double, N > &dirInLocal) const
 Transforms a direction in local space to the world coordinate. More...
 
Ray< double, N > ToWorld (const Ray< double, N > &rayInLocal) const
 Transforms a ray in local space to the world coordinate. More...
 
BoundingBox< double, N > ToWorld (const BoundingBox< double, N > &bboxInLocal) const
 Transforms a bounding box in local space to the world coordinate. More...
 

Detailed Description

template<size_t N>
class CubbyFlow::Transform< N >

Represents N-D rigid body transform.

Constructor & Destructor Documentation

◆ Transform() [1/2]

template<size_t N>
CubbyFlow::Transform< N >::Transform ( )
default

Constructs identity transform.

◆ Transform() [2/2]

template<size_t N>
CubbyFlow::Transform< N >::Transform ( const Vector< double, N > &  translation,
const Orientation< N > &  orientation 
)

Constructs a transform with translation and orientation.

Member Function Documentation

◆ GetOrientation()

template<size_t N>
const Orientation<N>& CubbyFlow::Transform< N >::GetOrientation ( ) const

Returns the orientation.

◆ GetTranslation()

template<size_t N>
const Vector<double, N>& CubbyFlow::Transform< N >::GetTranslation ( ) const

Returns the translation.

◆ SetOrientation()

template<size_t N>
void CubbyFlow::Transform< N >::SetOrientation ( const Orientation< N > &  orientation)

Sets the orientation.

◆ SetTranslation()

template<size_t N>
void CubbyFlow::Transform< N >::SetTranslation ( const Vector< double, N > &  translation)

Sets the translation.

◆ ToLocal() [1/3]

template<size_t N>
Vector<double, N> CubbyFlow::Transform< N >::ToLocal ( const Vector< double, N > &  pointInWorld) const

Transforms a point in world coordinate to the local frame.

◆ ToLocal() [2/3]

template<size_t N>
Ray<double, N> CubbyFlow::Transform< N >::ToLocal ( const Ray< double, N > &  rayInWorld) const

Transforms a ray in world coordinate to the local frame.

◆ ToLocal() [3/3]

template<size_t N>
BoundingBox<double, N> CubbyFlow::Transform< N >::ToLocal ( const BoundingBox< double, N > &  bboxInWorld) const

Transforms a bounding box in world coordinate to the local frame.

◆ ToLocalDirection()

template<size_t N>
Vector<double, N> CubbyFlow::Transform< N >::ToLocalDirection ( const Vector< double, N > &  dirInWorld) const

Transforms a direction in world coordinate to the local frame.

◆ ToWorld() [1/3]

template<size_t N>
Vector<double, N> CubbyFlow::Transform< N >::ToWorld ( const Vector< double, N > &  pointInLocal) const

Transforms a point in local space to the world coordinate.

◆ ToWorld() [2/3]

template<size_t N>
Ray<double, N> CubbyFlow::Transform< N >::ToWorld ( const Ray< double, N > &  rayInLocal) const

Transforms a ray in local space to the world coordinate.

◆ ToWorld() [3/3]

template<size_t N>
BoundingBox<double, N> CubbyFlow::Transform< N >::ToWorld ( const BoundingBox< double, N > &  bboxInLocal) const

Transforms a bounding box in local space to the world coordinate.

◆ ToWorldDirection()

template<size_t N>
Vector<double, N> CubbyFlow::Transform< N >::ToWorldDirection ( const Vector< double, N > &  dirInLocal) const

Transforms a direction in local space to the world coordinate.


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