|
lbm_reference
|
Three component vector of type specified by template parameter. More...
#include <Vec.h>
Inheritance diagram for Vec3< T >:
Collaboration diagram for Vec3< T >:Public Member Functions | |
| T | operator* (const Vec3< T > &v) const |
| Inner product operator. More... | |
| Vec3< T > | operator* (const T a) const |
| Multiplication with scalar operator. More... | |
| void | operator*= (const T a) const |
| In-place multiplication with scalar operator. More... | |
| Vec3< T > | operator+ (const Vec3< T > &v) const |
| Addition operator. More... | |
| void | operator+= (const Vec3< T > &v) |
| In-place addition operator. More... | |
| T & | operator[] (int i) |
| Non-constant access operator. More... | |
| const T & | operator[] (int i) const |
| Constant access operator. More... | |
| Vec3 () | |
| Default constructor. More... | |
| Vec3 (const Vec3 &v) | |
| Copy constructor. More... | |
| Vec3 (T x, T y, T z) | |
| Constructor to set all three components. More... | |
| virtual | ~Vec3 () |
| Destructor. More... | |
Protected Attributes | |
| std::vector< T > | data_ |
| The stl vector to hold the data. More... | |
Three component vector of type specified by template parameter.
| T | Type of the vector elements |
|
inline |
|
inline |
|
inline |
|
protected |
The stl vector to hold the data.
Definition at line 132 of file Vec.h.
Referenced by Vec3< int >::operator*(), Vec3< int >::operator*=(), Vec3< int >::operator+(), Vec3< int >::operator+=(), Vec3< int >::operator[](), Vec3< int >::Vec3(), and Vec3< int >::~Vec3().
1.8.3.1