Public Member Functions | |
| Vector3 (float x, float y, float z) | |
| float | x (void) |
| float | y (void) |
| float | z (void) |
| void | set (float x, float y, float z) |
| float | index (int offset) |
| void | transform (const TransMatrix &matrix) |
| Vector3 * | transformed (const TransMatrix &matrix) |
The Vector3 class represents a 3D vector.
| Vector3::Vector3 | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
| float Vector3::index | ( | int | offset) |
Returns the value at the given coordinate offset (0=x, 1=y, 2=z).
| offset | The offset for the coordinate value to return. |
| void Vector3::set | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Sets the x,y,z values of the Vector3.
| x | The x-value. |
| y | The y-value. |
| z | The z-value. |
| void Vector3::transform | ( | const TransMatrix & | matrix) |
Transforms this Vector3 instance with the given TransMatrix.
| matix | The TransMatrix which will be used for the transformation. |
| Vector3* Vector3::transformed | ( | const TransMatrix & | matrix) |
Transforms a new instance of the Vector3 with the given TransMatrix and returns it.
| matix | The TransMatrix which will be used for the transformation. |
| float Vector3::x | ( | void | ) |
Returns the x-coordinate of the Vector3.
| float Vector3::y | ( | void | ) |
Returns the y-coordinate of the Vector3.
| float Vector3::z | ( | void | ) |
Returns the z-coordinate of the Vector3.
1.8.4