Jet
v1.3.3
|
Represents 2-D rigid body transform. More...
#include <jet/transform2.h>
Public Member Functions | |
Transform2 () | |
Constructs identity transform. More... | |
Transform2 (const Vector2D &translation, double orientation) | |
Constructs a transform with translation and orientation. More... | |
const Vector2D & | translation () const |
Returns the translation. More... | |
void | setTranslation (const Vector2D &translation) |
Sets the traslation. More... | |
double | orientation () const |
Returns the orientation in radians. More... | |
void | setOrientation (double orientation) |
Sets the orientation in radians. More... | |
Vector2D | toLocal (const Vector2D &pointInWorld) const |
Transforms a point in world coordinate to the local frame. More... | |
Vector2D | toLocalDirection (const Vector2D &dirInWorld) const |
Transforms a direction in world coordinate to the local frame. More... | |
Ray2D | toLocal (const Ray2D &rayInWorld) const |
Transforms a ray in world coordinate to the local frame. More... | |
BoundingBox2D | toLocal (const BoundingBox2D &bboxInWorld) const |
Transforms a bounding box in world coordinate to the local frame. More... | |
Vector2D | toWorld (const Vector2D &pointInLocal) const |
Transforms a point in local space to the world coordinate. More... | |
Vector2D | toWorldDirection (const Vector2D &dirInLocal) const |
Transforms a direction in local space to the world coordinate. More... | |
Ray2D | toWorld (const Ray2D &rayInLocal) const |
Transforms a ray in local space to the world coordinate. More... | |
BoundingBox2D | toWorld (const BoundingBox2D &bboxInLocal) const |
Transforms a bounding box in local space to the world coordinate. More... | |
Represents 2-D rigid body transform.
jet::Transform2::Transform2 | ( | ) |
Constructs identity transform.
jet::Transform2::Transform2 | ( | const Vector2D & | translation, |
double | orientation | ||
) |
Constructs a transform with translation and orientation.
double jet::Transform2::orientation | ( | ) | const |
Returns the orientation in radians.
void jet::Transform2::setOrientation | ( | double | orientation | ) |
Sets the orientation in radians.
void jet::Transform2::setTranslation | ( | const Vector2D & | translation | ) |
Sets the traslation.
BoundingBox2D jet::Transform2::toLocal | ( | const BoundingBox2D & | bboxInWorld | ) | const |
Transforms a bounding box in world coordinate to the local frame.
Transforms a ray in world coordinate to the local frame.
Transforms a point in world coordinate to the local frame.
Transforms a direction in world coordinate to the local frame.
BoundingBox2D jet::Transform2::toWorld | ( | const BoundingBox2D & | bboxInLocal | ) | const |
Transforms a bounding box in local space to the world coordinate.
Transforms a ray in local space to the world coordinate.
Transforms a point in local space to the world coordinate.
Transforms a direction in local space to the world coordinate.
const Vector2D& jet::Transform2::translation | ( | ) | const |
Returns the translation.