#include <b2Math.h>
Public Member Functions | |
b2Transform () | |
The default constructor does nothing (for performance). | |
b2Transform (const b2Vec2 &position, const b2Mat22 &R) | |
Initialize using a position vector and a rotation matrix. | |
void | SetIdentity () |
Set this to the identity transform. | |
void | Set (const b2Vec2 &p, float32 angle) |
Set this based on the position and angle. | |
float32 | GetAngle () const |
Calculate the angle that the rotation matrix represents. | |
Public Attributes | |
b2Vec2 | position |
b2Mat22 | R |
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
b2Transform::b2Transform | ( | ) | [inline] |
The default constructor does nothing (for performance).
Initialize using a position vector and a rotation matrix.
float32 b2Transform::GetAngle | ( | ) | const [inline] |
Calculate the angle that the rotation matrix represents.
Set this based on the position and angle.
void b2Transform::SetIdentity | ( | ) | [inline] |
Set this to the identity transform.