|
| ColorVertex () |
| Default constructor. All coordinates and the color are initialized with zeros. More...
|
|
| ColorVertex (const ColorVertex &o) |
| Copy Ctor. More...
|
|
| ColorVertex (const CoordType &_x, const CoordType &_y, const CoordType &_z) |
| Builds a ColorVertex with the given coordinates. More...
|
|
| ColorVertex (const CoordType &_x, const CoordType &_y, const CoordType &_z, const unsigned char _r, const unsigned char _g, const unsigned char _b,...) |
| Builds a Vertex with the given coordinates. More...
|
|
| ColorVertex (const T &o) |
| Copy Ctor. More...
|
|
CoordType & | operator[] (const int &index) |
|
CoordType | operator[] (const int &index) const |
|
| BaseVector () |
| Default constructs a null-vector. More...
|
|
| BaseVector (const BaseVector &o) |
|
| BaseVector (const T &x, const T &y, const T &z) |
| Builds a BaseVector with the given coordinates. More...
|
|
BaseVector< T > | cross (const BaseVector &other) const |
| Calculates the cross product between this and the given vector. Returns a new BaseVector instance. More...
|
|
T | distance (const BaseVector &other) const |
| Calculates the distance to another vector. More...
|
|
T | distance2 (const BaseVector &other) const |
| Calculates the squared distance to another vector. More...
|
|
CoordType | distanceFrom (const BaseVector< T > &other) const |
|
T | dot (const BaseVector &other) const |
| Calculates the dot product between this and the given vector. More...
|
|
T | length () const |
| Returns the length of this vector. More...
|
|
T | length2 () const |
| Returns the squared length of this vector. More...
|
|
void | normalize () |
|
Normal< T > | normalized () const |
| Returns a normalized version of this vector. More...
|
|
bool | operator!= (const BaseVector &other) const |
|
T | operator* (const BaseVector< CoordType > &other) const |
|
BaseVector< T > | operator* (const T &scale) const |
| Scalar multiplication. More...
|
|
BaseVector< T > & | operator*= (const T &scale) |
| Scalar multiplication. More...
|
|
BaseVector< T > | operator+ (const BaseVector &other) const |
| Element-wise addition. More...
|
|
BaseVector< T > & | operator+= (const BaseVector< T > &other) |
| Element-wise addition. More...
|
|
BaseVector< T > | operator- (const BaseVector &other) const |
| Element-wise subtraction. More...
|
|
BaseVector< T > & | operator-= (const BaseVector< T > &other) |
| Element-wise subtraction. More...
|
|
BaseVector< T > | operator/ (const T &scale) const |
| Scalar division. More...
|
|
BaseVector< T > & | operator/= (const T &scale) |
| Scalar division. More...
|
|
bool | operator== (const BaseVector &other) const |
|
T & | operator[] (const unsigned &index) |
| Indexed coordinate access (writing) More...
|
|
T | operator[] (const unsigned &index) const |
| Indexed coordinate access (reading) More...
|
|
BaseVector< T > | rotated (const BaseVector &n, const double &alpha) const |
| Calculates the rotated vector around an normal vector n with the rotation angle alpha. More...
|
|
CoordType | squaredDistanceFrom (const BaseVector< CoordType > &other) const |
|
template<typename T, typename ColorT>
class lvr2::ColorVertex< T, ColorT >
A color vertex.
Definition at line 50 of file ColorVertex.hpp.