#include <vlvector.h>
Inheritance diagram for vlVector< T >:

Public Member Functions | |
| vlVector (T const &x=0, T const &y=0, T const &z=0) | |
| default constructor | |
| vlVector (vlTriple< T > const &triple) | |
| Constructor when triple is given as input. | |
| ~vlVector () | |
| default destructor | |
| double | dot (vlVector const &other) const |
| does a dot product between self and other | |
| vlVector< T > | cross (vlVector const &other) const |
| does a cross product between self and other | |
| double | length () const |
| returns the length of the vector | |
| void | normalize () |
| normalizes the vector | |
| void | clamp (T const &min, T const &max) |
| clamps the vector to the given range | |
| void | scale (vlVector< T > const &other) |
| scales the vector using other | |
Definition at line 42 of file vlvector.h.
|
||||||||||||||||||||
|
Definition at line 84 of file vlvector.h. |
|
||||||||||
|
Definition at line 91 of file vlvector.h. |
|
|||||||||
|
Definition at line 103 of file vlvector.h. |
|
||||||||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 172 of file vlvector.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, max, and min. |
|
||||||||||
|
Definition at line 115 of file vlvector.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 130 of file vlvector.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
|||||||||
|
Definition at line 142 of file vlvector.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. Referenced by vlVector< T >::normalize(). |
|
|||||||||
|
Definition at line 152 of file vlvector.h. References vlVector< T >::length(), vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. Referenced by vlNormal< T >::operator *=(), vlNormal< T >::operator+=(), vlNormal< T >::operator-=(), vlNormal< float >::operator/=(), vlNormal< T >::operator/=(), vlNormal< T >::vlNormal(), vlNormal< float >::x(), vlNormal< float >::y(), and vlNormal< float >::z(). |
|
||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 195 of file vlvector.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
1.3.3