ackb2d 0.9
3D Gamestudio Box 2d Wraper
|
Go to the source code of this file.
Functions | |
b2Transform * | b2Transform_Create () |
The default constructor does nothing (for performance). | |
b2Transform * | b2Transform_Create2 (const VECTOR *position, const VECTOR *R) |
Initialize using a position vector and a rotation matrix. | |
void | b2Transform_Destroy (b2Transform *transform) |
Destroy transform. | |
void | b2Transform_SetIdentity (b2Transform *transform) |
Set this to the identity transform. | |
void | b2Transform_Set (b2Transform *transform, const VECTOR *p, var angle) |
Set this based on the position and angle. | |
void | b2Transform_SetAngle (b2Transform *transform, var angle) |
Set the rotation matrix from an angle. | |
var | b2Transform_GetAngle (b2Transform *transform) |
Calculate the angle that the rotation matrix represents. | |
void | b2Transform_SetPosition (b2Transform *transform, VECTOR *p) |
Set the position. | |
void | b2Transform_GetPosition (b2Transform *transform, VECTOR *outPosition) |
Get the position. | |
void | b2Transform_SetRotationMat (b2Transform *transform, VECTOR *R) |
Set the rotation matrix. | |
void | b2Transform_GetRotationMat (b2Transform *transform, VECTOR *outR) |
Get the rotation matrix. |
b2Transform* b2Transform_Create | ( | ) |
The default constructor does nothing (for performance).
b2Transform* b2Transform_Create2 | ( | const VECTOR * | position, |
const VECTOR * | R | ||
) |
Initialize using a position vector and a rotation matrix.
void b2Transform_Destroy | ( | b2Transform * | transform | ) |
Destroy transform.
var b2Transform_GetAngle | ( | b2Transform * | transform | ) |
Calculate the angle that the rotation matrix represents.
void b2Transform_GetPosition | ( | b2Transform * | transform, |
VECTOR * | outPosition | ||
) |
Get the position.
void b2Transform_GetRotationMat | ( | b2Transform * | transform, |
VECTOR * | outR | ||
) |
Get the rotation matrix.
void b2Transform_Set | ( | b2Transform * | transform, |
const VECTOR * | p, | ||
var | angle | ||
) |
Set this based on the position and angle.
void b2Transform_SetAngle | ( | b2Transform * | transform, |
var | angle | ||
) |
Set the rotation matrix from an angle.
void b2Transform_SetIdentity | ( | b2Transform * | transform | ) |
Set this to the identity transform.
void b2Transform_SetPosition | ( | b2Transform * | transform, |
VECTOR * | p | ||
) |
Set the position.
void b2Transform_SetRotationMat | ( | b2Transform * | transform, |
VECTOR * | R | ||
) |
Set the rotation matrix.