| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/vector.h>

Public Member Functions | |
| Vector3Base (T x=T(0.0), T y=T(0.0), T z=T(0.0)) | |
| bool | operator== (const Vector3Base &other) const |
| bool | operator!= (const Vector3Base &other) const |
| bool | operator< (const Vector3Base &other) const |
| The comparison is based on the lexiographic order. | |
| T & | operator[] (unsigned int index) |
| T | operator[] (unsigned int index) const |
| Indices 0,1, and 2 correspond to the x,y,z coordinates of the vector. | |
| Vector3Base & | operator+= (const Vector3Base &other) |
| Vector3Base & | operator-= (const Vector3Base &other) |
| Vector3Base & | operator*= (const Vector3Base &other) |
| Vector3Base & | operator*= (T scalar) |
| Vector3Base & | operator/= (T scalar) |
| Vector3Base | operator+ (const Vector3Base &other) const |
| Vector3Base | operator- (const Vector3Base &other) const |
| Vector3Base | operator* (const Vector3Base &other) const |
| Vector3Base | operator* (T scalar) const |
| Vector3Base | operator/ (T scalar) const |
| Vector3Base | operator- () const |
| Vector3Base | normalized () const |
| bool | normalize () |
| T | abs () const |
| T | abs2 () const |
| T | dotProduct (const Vector3Base &other) const |
| Vector3Base length and scalar and cross product methods. | |
| Vector3Base | crossProduct (const Vector3Base &other) const |
| bool | isOrigin () const |
Static Public Member Functions | |
| static void | convertVector3dToVector3f (const Vector3Base< double > &, Vector3Base< float > &) |
| static void | convertVector3fToVector3d (const Vector3Base< float > &, Vector3Base< double > &) |
Static Public Attributes | |
| static const Vector3Base & | origin |
| VRS::Vector3Base< T >::Vector3Base | ( | T | x = T(0.0), |
|
| T | y = T(0.0), |
|||
| T | z = T(0.0) | |||
| ) | [explicit] |
| bool VRS::Vector3Base< T >::operator== | ( | const Vector3Base< T > & | other | ) | const |
| bool VRS::Vector3Base< T >::operator!= | ( | const Vector3Base< T > & | other | ) | const |
| bool VRS::Vector3Base< T >::operator< | ( | const Vector3Base< T > & | other | ) | const |
The comparison is based on the lexiographic order.
| T& VRS::Vector3Base< T >::operator[] | ( | unsigned int | index | ) |
Reimplemented from VRS::VertexData< 3, T >.
| T VRS::Vector3Base< T >::operator[] | ( | unsigned int | index | ) | const |
Indices 0,1, and 2 correspond to the x,y,z coordinates of the vector.
Reimplemented from VRS::VertexData< 3, T >.
| Vector3Base& VRS::Vector3Base< T >::operator+= | ( | const Vector3Base< T > & | other | ) |
| Vector3Base& VRS::Vector3Base< T >::operator-= | ( | const Vector3Base< T > & | other | ) |
| Vector3Base& VRS::Vector3Base< T >::operator*= | ( | const Vector3Base< T > & | other | ) |
| Vector3Base& VRS::Vector3Base< T >::operator*= | ( | T | scalar | ) |
| Vector3Base& VRS::Vector3Base< T >::operator/= | ( | T | scalar | ) |
| Vector3Base VRS::Vector3Base< T >::operator+ | ( | const Vector3Base< T > & | other | ) | const |
| Vector3Base VRS::Vector3Base< T >::operator- | ( | const Vector3Base< T > & | other | ) | const |
| Vector3Base VRS::Vector3Base< T >::operator* | ( | const Vector3Base< T > & | other | ) | const |
| Vector3Base VRS::Vector3Base< T >::operator* | ( | T | scalar | ) | const |
| Vector3Base VRS::Vector3Base< T >::operator/ | ( | T | scalar | ) | const |
| Vector3Base VRS::Vector3Base< T >::operator- | ( | ) | const |
| Vector3Base VRS::Vector3Base< T >::normalized | ( | ) | const |
| bool VRS::Vector3Base< T >::normalize | ( | ) |
`normalized' returns a normalized copy of the vector object. `normalize' normalizes the vector object. If the length of the vector was > 0, it returns 1 for success, otherwise 0.
| T VRS::Vector3Base< T >::abs | ( | ) | const |
| T VRS::Vector3Base< T >::abs2 | ( | ) | const |
| T VRS::Vector3Base< T >::dotProduct | ( | const Vector3Base< T > & | other | ) | const |
Vector3Base length and scalar and cross product methods.
| Vector3Base VRS::Vector3Base< T >::crossProduct | ( | const Vector3Base< T > & | other | ) | const |
Vector3Base cross product method. Behavior like the mathematical expression, if you read the signature from left to right. Example: c = (0,0,1) = a.crossProduct (b), with a =(1,0,0), b=(0,1,0).
| static void VRS::Vector3Base< T >::convertVector3dToVector3f | ( | const Vector3Base< double > & | , | |
| Vector3Base< float > & | ||||
| ) | [static] |
| static void VRS::Vector3Base< T >::convertVector3fToVector3d | ( | const Vector3Base< float > & | , | |
| Vector3Base< double > & | ||||
| ) | [static] |
| bool VRS::Vector3Base< T >::isOrigin | ( | ) | const |
const Vector3Base& VRS::Vector3Base< T >::origin [static] |