Torque2D Reference
Public Member Functions | Public Attributes | List of all members
b2Transform Struct Reference

#include <b2Math.h>

Public Member Functions

 b2Transform ()
 The default constructor does nothing. More...
 
 b2Transform (const b2Vec2 &position, const b2Rot &rotation)
 Initialize using a position vector and a rotation. More...
 
void SetIdentity ()
 Set this to the identity transform. More...
 
void Set (const b2Vec2 &position, float32 angle)
 Set this based on the position and angle. More...
 

Public Attributes

b2Vec2 p
 
b2Rot q
 

Detailed Description

A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.

Constructor & Destructor Documentation

b2Transform ( )
inline

The default constructor does nothing.

b2Transform ( const b2Vec2 position,
const b2Rot rotation 
)
inline

Initialize using a position vector and a rotation.

Member Function Documentation

void Set ( const b2Vec2 position,
float32  angle 
)
inline

Set this based on the position and angle.

void SetIdentity ( )
inline

Set this to the identity transform.

Member Data Documentation

b2Vec2 p
b2Rot q

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