|
| Transform2D () |
| Create an identity transformation that doesn't modify transformed points. More...
|
|
| Transform2D (const VectorND< T, 2 > &newPosition) |
| Create a transformation with the specified translation and no rotation or scaling. More...
|
|
| Transform2D (const VectorND< T, 2 > &newPosition, const MatrixND< T, 2, 2 > &newOrientation) |
| Create a transformation with the specified translation, rotation, and no scaling. More...
|
|
| Transform2D (const VectorND< T, 2 > &newPosition, const MatrixND< T, 2, 2 > &newOrientation, T newScale) |
| Create a transformation with the specified translation, rotation, and uniform scaling. More...
|
|
| Transform2D (const VectorND< T, 2 > &newPosition, const MatrixND< T, 2, 2 > &newOrientation, const VectorND< T, 2 > &newScale) |
| Create a transformation with the specified translation, rotation, and uniform scaling. More...
|
|
VectorND< T, 2 > | transformToLocal (T original) const |
| Transform the specified scalar value to object space. More...
|
|
VectorND< T, 2 > | transformToLocal (const VectorND< T, 2 > &original) const |
| Transform the specified position vector to object space. More...
|
|
MatrixND< T, 2, 2 > | transformToLocal (const MatrixND< T, 2, 2 > &original) const |
| Transform the specified matrix to object space. More...
|
|
AABB2D< T > | transformToLocal (const AABB2D< T > &box) const |
| Transform the specified axis-aligned box into object space, producing another axis-aligned box that encloses the original. More...
|
|
VectorND< T, 2 > | rotateToLocal (const VectorND< T, 2 > &original) const |
| Rotate the specified vector to object space. More...
|
|
VectorND< T, 2 > | scaleToLocal (const VectorND< T, 2 > &original) const |
| Scale a vector to object space. More...
|
|
VectorND< T, 2 > | transformToWorld (T original) const |
| Transform the specified scalar value to world space. More...
|
|
VectorND< T, 2 > | transformToWorld (const VectorND< T, 2 > &original) const |
| Transform the specified position vector to world space. More...
|
|
MatrixND< T, 2, 2 > | transformToWorld (const MatrixND< T, 2, 2 > &original) const |
| Transform the specified matrix to world space. More...
|
|
AABB2D< T > | transformToWorld (const AABB2D< T > &box) const |
| Transform the specified axis-aligned box into world space, producing another axis-aligned box that encloses the original. More...
|
|
VectorND< T, 2 > | rotateToWorld (const VectorND< T, 2 > &original) const |
| Rotate the specified vector to world space. More...
|
|
VectorND< T, 2 > | scaleToWorld (const VectorND< T, 2 > &original) const |
| Scale a vector to world space. More...
|
|
T | operator* (T value) const |
| Scale the specified value to world space with this transformation. More...
|
|
VectorND< T, 2 > | operator* (const VectorND< T, 2 > &vector) const |
| Transform the specified vector to world space with this transformation. More...
|
|
MatrixND< T, 2, 2 > | operator* (const MatrixND< T, 2, 2 > &matrix) const |
| Transform the specified matrix to world space with this transformation. More...
|
|
Ray2D< T > | operator* (const Ray2D< T > &ray) const |
| Transform the specified ray to world space with this transformation. More...
|
|
Plane2D< T > | operator* (const Plane2D< T > &plane) const |
| Transform the specified plane to world space with this transformation. More...
|
|
Transform2D< T > | operator* (const Transform2D< T > &other) const |
| Concatenate this transformation with another and return the combined transformation. More...
|
|
Transform2D< T > | invert () const |
| Return the inverse of this transformations that applys the opposite transformation. More...
|
|
MatrixND< T, 3, 3 > | toMatrix () const |
| Convert this transformation into a 3x3 homogeneous-coordinate matrix. More...
|
|
MatrixND< T, 3, 3 > | toMatrixInverse () const |
| Convert the inverse of this transformation into a 3x3 homogeneous-coordinate matrix. More...
|
|
MatrixND< T, 4, 4 > | toMatrix4 () const |
| Convert this transformation into a 4x4 homogeneous-coordinate matrix. More...
|
|
MatrixND< T, 4, 4 > | toMatrix4Inverse () const |
| Convert the inverse of this transformation into a 4x4 homogeneous-coordinate matrix. More...
|
|
template<typename T>
class om::math::Transform2D< T >
A class that represents a 2-dimensional transformation.
The transformation is composed of translation, rotation, and scaling. The components are assumed to be in the following order: translation, rotation, and scaling. Thus, when transforming a point from world to object space by the transformation, translation is first applied, followed by scaling, and finally rotation. The reverse holds true for transformations from object to world space.