#include <vlnormal.h>
Inheritance diagram for vlNormal< T >:

Public Member Functions | |
| vlNormal (T const &x=0, T const &y=0, T const &z=0) | |
| default constructor | |
| vlNormal (vlTriple< T > const &triple) | |
| Constructor when a triple is given as input. | |
| ~vlNormal () | |
| default destructor | |
| T | x () const |
| get value of x | |
| T | y () const |
| get value of y | |
| T | z () const |
| get value of z | |
| template<class S> void | x (const S &value) |
| set value of x | |
| template<class S> void | y (const S &value) |
| set value of y | |
| template<class S> void | z (const S &value) |
| set value of z | |
| vlNormal< T > | operator- () const |
| multiples triple elements with -1 | |
| vlNormal< T > | operator+ (vlTriple< T > const &other) const |
| adds another triple to self and returns the sum | |
| vlNormal< T > | operator+ (T const &value) const |
| adds a const value to self and returns the sum | |
| vlNormal< T > | operator- (vlTriple< T > const &other) const |
| subtracts another triple from self and returns the result | |
| vlNormal< T > | operator- (T const &value) const |
| subtracts a const value from self and returns the result | |
| vlNormal< T > & | operator+= (vlTriple< T > const &other) |
| adds another triple to self | |
| vlNormal< T > & | operator-= (vlTriple< T > const &other) |
| subtracts another triple from self | |
| void | operator *= (T const &value) |
| multiples self with a const | |
| void | operator/= (T const &value) |
| devides self with a const | |
| vlNormal< T > | operator * (T const &value) const |
| multiples self with other and returns the result | |
| vlNormal< T > | operator/ (T const &value) const |
| divides other from self and returns the result | |
| vlNormal< T > | cross (vlVector< T > const &other) const |
| does a cross product between self and other | |
| 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 | |
Rule of Thumb: Always use access functions, unless the speed is really bothering you.
Definition at line 53 of file vlnormal.h.
|
||||||||||||||||||||
|
Definition at line 142 of file vlnormal.h. References vlVector< T >::normalize(), x, y, and z. Referenced by vlNormal< T >::operator *(), and vlNormal< T >::operator/(). |
|
||||||||||
|
Definition at line 150 of file vlnormal.h. References vlVector< T >::normalize(). |
|
|||||||||
|
Definition at line 163 of file vlnormal.h. |
|
||||||||||||||||
|
Reimplemented from vlVector< T >. Definition at line 380 of file vlnormal.h. |
|
||||||||||
|
Definition at line 365 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 337 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlNormal< T >::vlNormal(). |
|
||||||||||
|
Definition at line 270 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlVector< T >::normalize(). |
|
||||||||||
|
Reimplemented from vlTriple< T >. Definition at line 201 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 188 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 240 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlVector< T >::normalize(). |
|
||||||||||
|
Definition at line 227 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 214 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
|||||||||
|
Reimplemented from vlTriple< T >. Definition at line 175 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Definition at line 255 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlVector< T >::normalize(). |
|
||||||||||
|
Definition at line 350 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlNormal< T >::vlNormal(). |
|
||||||||||
|
Definition at line 287 of file vlnormal.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, and vlVector< T >::normalize(). |
|
||||||||||
|
Reimplemented from vlVector< T >. Definition at line 392 of file vlnormal.h. |
|
||||||||||||||
|
Reimplemented from vlTriple< T >. Definition at line 76 of file vlnormal.h. |
|
|||||||||
|
Reimplemented from vlTriple< T >. Definition at line 66 of file vlnormal.h. |
|
||||||||||||||
|
Reimplemented from vlTriple< T >. Definition at line 80 of file vlnormal.h. |
|
|||||||||
|
Reimplemented from vlTriple< T >. Definition at line 69 of file vlnormal.h. |
|
||||||||||||||
|
Reimplemented from vlTriple< T >. Definition at line 84 of file vlnormal.h. |
|
|||||||||
|
Reimplemented from vlTriple< T >. Definition at line 72 of file vlnormal.h. |
1.3.3