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]
|
default |
Constructs identity transform.
◆ Transform() [2/2]
CubbyFlow::Transform< N >::Transform | ( | const Vector< double, N > & | translation, |
const Orientation< N > & | orientation | ||
) |
Constructs a transform with translation and orientation.
Member Function Documentation
◆ GetOrientation()
const Orientation<N>& CubbyFlow::Transform< N >::GetOrientation | ( | ) | const |
Returns the orientation.
◆ GetTranslation()
const Vector<double, N>& CubbyFlow::Transform< N >::GetTranslation | ( | ) | const |
Returns the translation.
◆ SetOrientation()
void CubbyFlow::Transform< N >::SetOrientation | ( | const Orientation< N > & | orientation | ) |
Sets the orientation.
◆ SetTranslation()
void CubbyFlow::Transform< N >::SetTranslation | ( | const Vector< double, N > & | translation | ) |
Sets the translation.
◆ ToLocal() [1/3]
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]
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]
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()
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]
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]
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]
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()
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:
- Core/Geometry/Transform.hpp