![]() |
Flair
Framework Libre Air
|
Class defining a 3D vector. More...
#include <Vector3D.h>
Inheritance diagram for flair::core::Vector3D< T >:Public Member Functions | |
| Vector3D (T x=0, T y=0, T z=0) | |
| Constructor. More... | |
| ~Vector3D () | |
| Destructor. More... | |
| void | RotateX (float value) |
| x axis rotation More... | |
| void | RotateXDeg (float value) |
| x axis rotation More... | |
| void | RotateY (float value) |
| y axis rotation More... | |
| void | RotateYDeg (float value) |
| y axis rotation More... | |
| void | RotateZ (float value) |
| z axis rotation More... | |
| void | RotateZDeg (float value) |
| z axis rotation More... | |
| void | Rotate (const RotationMatrix &matrix) |
| rotation More... | |
| void | Rotate (const Quaternion &quaternion) |
| rotation More... | |
| void | To2Dxy (Vector2D< T > &vector) const |
| Convert to a Vector2D. More... | |
| Vector2D< T > | To2Dxy (void) const |
| Convert to a Vector2D. More... | |
| float | GetNorm (void) const |
| Norm. More... | |
| void | Normalize (void) |
| Normalize. More... | |
| void | Saturate (const Vector3D< T > &min, const Vector3D< T > &max) |
| Saturate. More... | |
| void | Saturate (float min, float max) |
| Saturate. More... | |
| void | Saturate (const Vector3D< T > &value) |
| Saturate. More... | |
| void | Saturate (float value) |
| Saturate. More... | |
| T & | operator[] (size_t idx) |
| const T & | operator[] (size_t idx) const |
| template<typename S > | |
| Vector3D< T > & | operator= (const Vector3D< S > &vector) |
| Vector3D< T > & | operator+= (const Vector3D< T > &vector) |
| Vector3D< T > & | operator-= (const Vector3D< T > &vector) |
Public Attributes | |
| T | x |
| x More... | |
| T | y |
| y More... | |
| T | z |
| z More... | |
Class defining a 3D vector.
| flair::core::Vector3D< T >::Vector3D | ( | T | x = 0, |
| T | y = 0, |
||
| T | z = 0 |
||
| ) |
| flair::core::Vector3D< T >::~Vector3D | ( | ) |
Destructor.
| void flair::core::Vector3D< T >::RotateX | ( | float | value | ) |
x axis rotation
| value | rotation value in radians |
| void flair::core::Vector3D< T >::RotateXDeg | ( | float | value | ) |
x axis rotation
| value | rotation value in degrees |
| void flair::core::Vector3D< T >::RotateY | ( | float | value | ) |
y axis rotation
| value | rotation value in radians |
| void flair::core::Vector3D< T >::RotateYDeg | ( | float | value | ) |
y axis rotation
| value | rotation value in degrees |
| void flair::core::Vector3D< T >::RotateZ | ( | float | value | ) |
z axis rotation
| value | rotation value in radians |
| void flair::core::Vector3D< T >::RotateZDeg | ( | float | value | ) |
z axis rotation
| value | rotation value in degrees |
| void flair::core::Vector3D< T >::Rotate | ( | const RotationMatrix & | matrix | ) |
rotation
| matrix | rotation matrix |
| void flair::core::Vector3D< T >::Rotate | ( | const Quaternion & | quaternion | ) |
rotation
Compute a rotation from a quaternion. This method uses a rotation matrix internaly.
| quaternion | quaternion |
| void flair::core::Vector3D< T >::To2Dxy | ( | Vector2D< T > & | vector | ) | const |
| Vector2D<T> flair::core::Vector3D< T >::To2Dxy | ( | void | ) | const |
| float flair::core::Vector3D< T >::GetNorm | ( | void | ) | const |
Norm.
| void flair::core::Vector3D< T >::Normalize | ( | void | ) |
Normalize.
| void flair::core::Vector3D< T >::Saturate | ( | const Vector3D< T > & | min, |
| const Vector3D< T > & | max | ||
| ) |
Saturate.
Saturate between min and max
| min | minimum value |
| max | maximum value |
| void flair::core::Vector3D< T >::Saturate | ( | float | min, |
| float | max | ||
| ) |
Saturate.
Saturate between min and max
| min | minimum Vector3D(min,min,min) value |
| max | maximum Vector3D(max,max,max) value |
| void flair::core::Vector3D< T >::Saturate | ( | const Vector3D< T > & | value | ) |
| void flair::core::Vector3D< T >::Saturate | ( | float | value | ) |
Saturate.
Saturate between -abs(Vector3D(value,value,value)) and abs(Vector3D(value,value,value))
| value | saturation Vector3D(value,value,value) |
| T flair::core::Vector3D< T >::x |
x
| T flair::core::Vector3D< T >::y |
y
| T flair::core::Vector3D< T >::z |
z