CubbyFlow::Transform2 Class Reference

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

#include <Core/Transform/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 Vector2DGetTranslation () const
 Returns the translation. More...
 
void SetTranslation (const Vector2D &translation)
 Sets the translation. More...
 
double GetOrientation () 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]

CubbyFlow::Transform2::Transform2 ( )

Constructs identity transform.

◆ Transform2() [2/2]

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

Constructs a transform with translation and orientation.

Member Function Documentation

◆ GetOrientation()

double CubbyFlow::Transform2::GetOrientation ( ) const

Returns the orientation in radians.

◆ GetTranslation()

const Vector2D& CubbyFlow::Transform2::GetTranslation ( ) const

Returns the translation.

◆ SetOrientation()

void CubbyFlow::Transform2::SetOrientation ( double  orientation)

Sets the orientation in radians.

◆ SetTranslation()

void CubbyFlow::Transform2::SetTranslation ( const Vector2D translation)

Sets the translation.

◆ ToLocal() [1/3]

Vector2D CubbyFlow::Transform2::ToLocal ( const Vector2D pointInWorld) const

Transforms a point in world coordinate to the local frame.

◆ ToLocal() [2/3]

Ray2D CubbyFlow::Transform2::ToLocal ( const Ray2D rayInWorld) const

Transforms a ray in world coordinate to the local frame.

◆ ToLocal() [3/3]

BoundingBox2D CubbyFlow::Transform2::ToLocal ( const BoundingBox2D bboxInWorld) const

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

◆ ToLocalDirection()

Vector2D CubbyFlow::Transform2::ToLocalDirection ( const Vector2D dirInWorld) const

Transforms a direction in world coordinate to the local frame.

◆ ToWorld() [1/3]

Vector2D CubbyFlow::Transform2::ToWorld ( const Vector2D pointInLocal) const

Transforms a point in local space to the world coordinate.

◆ ToWorld() [2/3]

Ray2D CubbyFlow::Transform2::ToWorld ( const Ray2D rayInLocal) const

Transforms a ray in local space to the world coordinate.

◆ ToWorld() [3/3]

BoundingBox2D CubbyFlow::Transform2::ToWorld ( const BoundingBox2D bboxInLocal) const

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

◆ ToWorldDirection()

Vector2D CubbyFlow::Transform2::ToWorldDirection ( const Vector2D dirInLocal) const

Transforms a direction in local space to the world coordinate.


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