|
Box2D
2.2.1
Box2D API Reference for Kobold2D developers
|
#include <b2Math.h>
Collaboration diagram for b2Transform:Public Member Functions | |
| b2Transform () | |
| The default constructor does nothing. | |
| b2Transform (const b2Vec2 &position, const b2Rot &rotation) | |
| Initialize using a position vector and a rotation. | |
| void | SetIdentity () |
| Set this to the identity transform. | |
| void | Set (const b2Vec2 &position, float32 angle) |
| Set this based on the position and angle. | |
Public Attributes | |
| b2Vec2 | p |
| b2Rot | q |
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.
Initialize using a position vector and a rotation.
| void b2Transform::Set | ( | const b2Vec2 & | position, |
| float32 | angle | ||
| ) | [inline] |
Set this based on the position and angle.
| void b2Transform::SetIdentity | ( | ) | [inline] |
Set this to the identity transform.