|
Couch
|
#include <Transform.h>
Public Member Functions | |
| Transform (Vector3 position, Vector3 rotation) | |
| Transform (Vector3 position, Vector3 rotation, Vector3 scale) | |
| Vector3 | Forward () |
| Vector3 | Right () |
| Vector3 | Up () |
| Matrix | RotationMatrix () |
Public Attributes | |
| Vector3 | position |
| Vector3 | rotation |
| Vector3 | scale |
A Transform represents a position, rotation, and scale in 3D space.
| Vector3 Transform::Forward | ( | ) |
Returns a vector that is -Z, rotated by rotation.
| Vector3 Transform::Right | ( | ) |
Returns a vector that is +X, rotated by rotation.
| Matrix Transform::RotationMatrix | ( | ) |
Returns a matrix that, when multiplied by a Vector3 gives a Vector rotated by rotation
| Vector3 Transform::Up | ( | ) |
Returns a vector that is +Y, rotated by rotation.
| Vector3 Transform::position |
The position, according to the left-hand rule
| Vector3 Transform::rotation |
The rotation, in Euler angles
| Vector3 Transform::scale |
Scaling along the specified axis