#include <vector3d.h>
| vector3d | ( | ) | [inline] |
| vector3d | ( | T | nx, | |
| T | ny, | |||
| T | nz | |||
| ) | [inline] |
Calculates the cross product with another vector
| other,: | Other vector to get the cross product against. |
| T dotProduct | ( | const vector3d< T > & | other | ) | const [inline] |
| void getAs4Values | ( | T * | array | ) | [inline] |
Useful for setting in shader constants for example. The fourth value will always be 0.
Here, the vector is interpreted as point in 3 dimensional space.
Here, the vector is interpreted as a point in 3 dimensional space.
| vector3d<T> getHorizontalAngle | ( | ) | [inline] |
Thanks to Arras on the Irrlicht forums to add this method.
Returns interpolated vector.
| other,: | other vector to interpolate between | |
| d,: | value between 0.0f and 1.0f. |
| f64 getLength | ( | ) | const [inline] |
| f64 getLengthSQ | ( | ) | const [inline] |
This is useful because it is much faster then getLength().
| void invert | ( | ) | [inline] |
Returns if this vector interpreted as a point is on a line between two other points. It is assumed that the point is on the line.
| begin,: | Begin point to check between. | |
| end,: | End point to check between. |
| vector3d<T>& normalize | ( | ) | [inline] |
| vector3d<T> operator * | ( | const T | v | ) | const [inline] |
| vector3d<T>& operator *= | ( | const T | v | ) | [inline] |
| vector3d<T> operator- | ( | ) | const [inline] |
| vector3d<T> operator/ | ( | const T | v | ) | const [inline] |
| vector3d<T>& operator/= | ( | const T | v | ) | [inline] |
Rotates the vector around the Z axis( which changes the X and Y values ).
| degrees,: | Degress to rotate the vector. | |
| center,: | Center of the rotation. |
Rotates the vector around the Y axis( which changes the X and Z values ).
| degrees,: | Degress to rotate the vector. | |
| center,: | Center of the rotation. |
Rotates the vector around the X axis( which changes the Y and Z values ).
| degrees,: | Degress to rotate the vector. | |
| center,: | Center of the rotation. |
| void set | ( | const vector3d< T > & | p | ) | [inline] |
| void set | ( | const T | nx, | |
| const T | ny, | |||
| const T | nz | |||
| ) | [inline] |
| void setLength | ( | T | newlength | ) | [inline] |
Sets the lenght of the vector to a new value
| newlength,: | new length to set the vector to. |
| T X |
| T Y |
| T Z |
1.5.1-p1