Jet  v1.3.3
Public Member Functions | List of all members
jet::Transform2 Class Reference

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 Vector2Dtranslation () 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...
 

Detailed Description

Represents 2-D rigid body transform.

Constructor & Destructor Documentation

◆ Transform2() [1/2]

jet::Transform2::Transform2 ( )

Constructs identity transform.

◆ Transform2() [2/2]

jet::Transform2::Transform2 ( const Vector2D translation,
double  orientation 
)

Constructs a transform with translation and orientation.

Member Function Documentation

◆ orientation()

double jet::Transform2::orientation ( ) const

Returns the orientation in radians.

◆ setOrientation()

void jet::Transform2::setOrientation ( double  orientation)

Sets the orientation in radians.

◆ setTranslation()

void jet::Transform2::setTranslation ( const Vector2D translation)

Sets the traslation.

◆ toLocal() [1/3]

BoundingBox2D jet::Transform2::toLocal ( const BoundingBox2D bboxInWorld) const

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

◆ toLocal() [2/3]

Ray2D jet::Transform2::toLocal ( const Ray2D rayInWorld) const

Transforms a ray in world coordinate to the local frame.

◆ toLocal() [3/3]

Vector2D jet::Transform2::toLocal ( const Vector2D pointInWorld) const

Transforms a point in world coordinate to the local frame.

◆ toLocalDirection()

Vector2D jet::Transform2::toLocalDirection ( const Vector2D dirInWorld) const

Transforms a direction in world coordinate to the local frame.

◆ toWorld() [1/3]

BoundingBox2D jet::Transform2::toWorld ( const BoundingBox2D bboxInLocal) const

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

◆ toWorld() [2/3]

Ray2D jet::Transform2::toWorld ( const Ray2D rayInLocal) const

Transforms a ray in local space to the world coordinate.

◆ toWorld() [3/3]

Vector2D jet::Transform2::toWorld ( const Vector2D pointInLocal) const

Transforms a point in local space to the world coordinate.

◆ toWorldDirection()

Vector2D jet::Transform2::toWorldDirection ( const Vector2D dirInLocal) const

Transforms a direction in local space to the world coordinate.

◆ translation()

const Vector2D& jet::Transform2::translation ( ) const

Returns the translation.


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