#include <Vector3.h>
Public Member Functions | |
| Vector3 () | |
| Vector3 (float x_coord, float y_coord, float z_coord) | |
| float | getXCoord () |
| float | getYCoord () |
| float | getZCoord () |
| void | setXCoord (float x_coord) |
| void | setYCoord (float y_coord) |
| void | setZCoord (float z_coord) |
| Vector3 | normalizeVector (Vector3 vec) |
Public Attributes | |
| float | x_coord_ |
| The x-coordinate of the vector 'Vector'. | |
| float | y_coord_ |
| The y-coordinate of the vector 'Vector'. | |
| float | z_coord_ |
| The z-coordinate of the vector 'Vector'. | |
| Vector3::Vector3 | ( | ) |
The default constructor.
| Vector3::Vector3 | ( | float | x_coord, | |
| float | y_coord, | |||
| float | z_coord | |||
| ) |
The second constructor which allows the initialisation of the object variables.
| x_coord | The x coordinate of the vector. | |
| y_coord | The y coordinate of the vector. | |
| z_coord | The z coordinate of the vector. |
| float Vector3::getXCoord | ( | ) |
Returns the x-coordinate of the vector.
| float Vector3::getYCoord | ( | ) |
Returns the y-coordinate of the vector.
| float Vector3::getZCoord | ( | ) |
Returns the z-coordinate of the vector.
Normalizes the given vector.
| void Vector3::setXCoord | ( | float | x_coord | ) |
Sets the x-coordinate of the vector.
| the | x-coordinate of the vector |
| void Vector3::setYCoord | ( | float | y_coord | ) |
Sets the y-coordinate of the vector.
| void Vector3::setZCoord | ( | float | z_coord | ) |
Sets the z-coordinate of the vector.
| float Vector3::x_coord_ |
The x-coordinate of the vector 'Vector'.
| float Vector3::y_coord_ |
The y-coordinate of the vector 'Vector'.
| float Vector3::z_coord_ |
The z-coordinate of the vector 'Vector'.
1.4.7