#include <vltriple.h>
Inheritance diagram for vlTriple< T >:

Public Member Functions | |
| vlTriple (T const &x=0, T const &y=0, T const &z=0) | |
| default constructor | |
| ~vlTriple () | |
| default destructor - no virtual.. it adds 4 bytes everytime | |
| T | x () const |
| get value of x | |
| T | y () const |
| get value of y | |
| T | z () const |
| get value of z | |
| T const & | xRef () const |
| Returns a reference to the vriable x - prefer x() to this. | |
| T const & | yRef () const |
| Returns a reference to the vriable y - prefer y() to this. | |
| T const & | zRef () const |
| Returns a reference to the vriable z - prefer z() to this. | |
| template<class S> vlTriple< T > & | operator= (vlTriple< S > const &other) |
| override for = operator | |
| 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 | |
| bool | operator== (vlTriple< T > const &other) const |
| checks if the two triple are equal | |
| bool | operator!= (vlTriple< T > const &other) const |
| checks if the two triple are unequal | |
| vlTriple< T > | operator+ () const |
| multiples triple elements with +1 | |
| vlTriple< T > | operator- () const |
| multiples triple elements with -1 | |
| template<class S> vlTriple< T > | operator+ (vlTriple< S > const &other) const |
| adds another triple to self and returns the sum | |
| vlTriple< T > | operator+ (T const &value) const |
| adds a const value to self and returns the sum | |
| template<class S> vlTriple< T > | operator- (vlTriple< S > const &other) const |
| subtracts another triple from self and returns the result | |
| template<class S> vlTriple< T > | operator- (S const &value) const |
| subtracts a const value from self and returns the result | |
| template<class S> vlTriple< T > & | operator+= (vlTriple< S > const &other) |
| adds another triple to self | |
| template<class S> vlTriple< T > & | operator-= (vlTriple< S > const &other) |
| subtracts another triple from self | |
| template<class S> vlTriple< T > | operator * (S const &value) const |
| multiples self with other and returns the result | |
| template<class S> vlTriple< T > | operator/ (S const &value) const |
| divides other from self and returns the result | |
| template<class S> void | operator *= (S const &value) |
| multiples self with other (self changes) | |
| template<class S> void | operator/= (S const &value) |
| divides other from self (self changes) | |
Protected Attributes | |
| T | m_x |
| member variables storing the 3 entries in the triple | |
| T | m_y |
| member variables storing the 3 entries in the triple | |
| T | m_z |
| member variables storing the 3 entries in the triple | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, vlTriple< T > const *const v) |
| overriding << to enable writing triple to a stream | |
| std::ostream & | operator<< (std::ostream &os, vlTriple< T > const &v) |
| overriding << to enable writing triple to a stream | |
Definition at line 42 of file vltriple.h.
|
||||||||||||||||||||
|
Definition at line 199 of file vltriple.h. Referenced by vlTriple< int16 >::operator *(). |
|
|||||||||
|
Note that this is not a virtual function. The reason is that a virtual function adds 4 bytes to the size of the class. Thus, a sizeof(vlTriple<char>) would be 7 bytes if it were virtual.
Definition at line 217 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 142 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 159 of file vltriple.h. |
|
||||||||||
|
Definition at line 294 of file vltriple.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 105 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 99 of file vltriple.h. |
|
|||||||||
|
Definition at line 340 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 126 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 119 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 112 of file vltriple.h. |
|
|||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 352 of file vltriple.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||||||
|
Definition at line 134 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 149 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 166 of file vltriple.h. |
|
||||||||||||||
|
Definition at line 232 of file vltriple.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, vlTriple< T >::m_z, vlTriple< T >::x(), vlTriple< T >::y(), and vlTriple< T >::z(). |
|
||||||||||
|
Definition at line 248 of file vltriple.h. References vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z. |
|
||||||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 75 of file vltriple.h. |
|
|||||||||
|
|||||||||
|
Definition at line 61 of file vltriple.h. |
|
||||||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 79 of file vltriple.h. |
|
|||||||||
|
|||||||||
|
Definition at line 64 of file vltriple.h. |
|
||||||||||||||
|
Reimplemented in vlNormal< T >, and vlNormal< float >. Definition at line 83 of file vltriple.h. |
|
|||||||||
|
|||||||||
|
Definition at line 67 of file vltriple.h. |
|
||||||||||||||||
|
Definition at line 179 of file vltriple.h. |
|
||||||||||||||||
|
Definition at line 174 of file vltriple.h. |
|
|||||
|
|||||
|
|||||
1.3.3