|
Dura2D
v0.1.0
An educational 2D game physics library
|
Represents a transformation in 2D space. More...
#include <d2Math.h>
Public Member Functions | |
| d2Transform () | |
| Default constructor. | |
| d2Transform (const d2Vec2 &p, const d2Rot &q) | |
| Constructor that initializes the transformation with given translation and rotation. | |
| void | SetIdentity () |
| Set the transformation as identity. | |
| void | Set (const d2Vec2 &p, const d2Rot &q) |
| Set the transformation with given translation and rotation. | |
Public Attributes | |
| d2Vec2 | p |
| The translation of the body. | |
| d2Rot | q |
| The rotation of the body. | |
Represents a transformation in 2D space.
|
inline |
Default constructor.
Initializes the transformation to identity.
Constructor that initializes the transformation with given translation and rotation.
| p | The translation of the body. |
| q | The rotation of the body. |
Set the transformation with given translation and rotation.
| p | The translation of the body. |
| q | The rotation of the body. |
|
inline |
Set the transformation as identity.
| d2Vec2 d2Transform::p |
The translation of the body.
| d2Rot d2Transform::q |
The rotation of the body.