Public Methods |
| Vecnf (void) |
| Default constructor. More...
|
| Vecnf (const Vecnf< n > &v) |
| Copy constructor. More...
|
float & | operator[] (size_t i) |
| Non-constant subscript operator. More...
|
const float & | operator[] (size_t i) const |
| Constant subscript operator. More...
|
Vecnf< n > | operator- (void) const |
| Negation operator. More...
|
Vecnf< n > | operator * (float f) const |
| Vector multiplication with a scalar operator. More...
|
float | operator * (const Vecnf< n > &v) const |
| Vector multiplication with a vector (i.e. dot product) operator. More...
|
Vecnf< n > | operator/ (float f) const |
| Vector division by a scalar operator. More...
|
Vecnf< n > | operator+ (const Vecnf< n > &v) const |
| Vector addition operator. More...
|
Vecnf< n > | operator- (const Vecnf< n > &v) const |
| Vector subtraction operator. More...
|
bool | operator== (const Vecnf< n > &v) const |
| Equality operator. More...
|
bool | operator!= (const Vecnf< n > &v) const |
| Inequality operator. More...
|
Vecnf< n > & | operator= (const Vecnf< n > &v) |
| Assignment operator. More...
|
Vecnf< n > & | operator *= (float f) |
| Vector multiplication with a scalar and assignment operator. More...
|
Vecnf< n > & | operator/= (float f) |
| Vector division by a scalar and assignment operator. More...
|
Vecnf< n > & | operator+= (const Vecnf< n > &v) |
| Vector addition and assignment operator. More...
|
Vecnf< n > & | operator-= (const Vecnf< n > &v) |
| Vector subtraction and assignment operator. More...
|
const float * | getPtr (void) const |
| Get a constant pointer to the floats of the vector. More...
|
float | normalize (void) |
| Normalize the vector and return the previous length. More...
|
void | orthogonalize (const Vecnf< n > &v) |
| Orthogonolize the vector with respect to a vector. More...
|
void | orthonormalize (const Vecnf< n > &v) |
| Orthonormalize the vector with respect to an other. More...
|
Protected Attributes |
float | m_vec [n] |
Related Functions |
(Note that these are not member functions.)
|
bool | areOrthogonal (const Vecnf< n > &v0, const Vecnf< n > &v1) |
bool | areOrthonormal (const Vecnf< n > &v0, const Vecnf< n > &v1) |
bool | areSimilar (const Vecnf< n > &v0, const Vecnf< n > &v1, float tol=FLT_EPSILON) |
float | distance (const Vecnf< n > &p0, const Vecnf< n > &p1) |
bool | isNormalized (const Vecnf< n > &v) |
bool | isNull (const Vecnf< n > &v) |
float | length (const Vecnf< n > &v) |
float | lengthSquared (const Vecnf< n > &v) |
float | maxElement (const Vecnf< n > &v) |
float | minElement (const Vecnf< n > &v) |
Vecnf< n > | operator * (float f, const Vecnf< n > &v) |