Hummingbird Framework
|
Object with a position, rotation and scale in a 3D space. More...
#include <Transform.h>
Public Member Functions | |
Transform () | |
Default constructor. More... | |
Transform (const Vector3d &init_pos) | |
Constructor with initial position. | |
~Transform () | |
Class destructor. | |
const Vector3d & | getPosition () const |
Get Transform position. More... | |
void | setPosition (const Vector3d &p) |
Set position from a Vector3d. More... | |
void | setPosition (double p_x, double p_y, double p_z) |
Set position from doubles. More... | |
const Vector3d & | getRotation () const |
Get Transform rotation. More... | |
void | setRotation (const Vector3d &rotation) |
Set rotation from a Vector3d. More... | |
void | setRotation (double rotation_x, double rotation_y, double rotation_z) |
Set rotation from doubles. More... | |
const Vector3d & | getScale () const |
Get Transform scale. More... | |
void | setScale (const Vector3d &scale) |
Set scale from a Vector3d. More... | |
void | setScale (double scale_x, double scale_y, double scale_z) |
Set position from doubles. More... | |
Object with a position, rotation and scale in a 3D space.
hb::Transform::Transform | ( | ) |
Default constructor.
All values to 0.
const Vector3d& hb::Transform::getPosition | ( | ) | const |
const Vector3d& hb::Transform::getRotation | ( | ) | const |
void hb::Transform::setPosition | ( | const Vector3d & | p | ) |
Set position from a Vector3d.
p | New position |
void hb::Transform::setPosition | ( | double | p_x, |
double | p_y, | ||
double | p_z | ||
) |
Set position from doubles.
p_x | New x position. |
p_y | New y position. |
p_z | New z position. |
void hb::Transform::setRotation | ( | const Vector3d & | rotation | ) |
Set rotation from a Vector3d.
rotation | New rotation |
void hb::Transform::setRotation | ( | double | rotation_x, |
double | rotation_y, | ||
double | rotation_z | ||
) |
Set rotation from doubles.
rotation_x | New rotation around the X axis. |
rotation_y | New rotation around the Y axis. |
rotation_z | New rotation around the Z axis. |
void hb::Transform::setScale | ( | const Vector3d & | scale | ) |
Set scale from a Vector3d.
scale | New scale |
void hb::Transform::setScale | ( | double | scale_x, |
double | scale_y, | ||
double | scale_z | ||
) |
Set position from doubles.
scale_x | New scale over the X axis. |
scale_y | New scale over the Y axis. |
scale_z | New scale over the Z axis. |