#include <Vecnf.h>
Inheritance diagram for nvmath::Vecnf< n >:
Public Member Functions | |
Vecnf (void) | |
Default constructor. | |
Vecnf (const Vecnf< n > &v) | |
Copy constructor. | |
float & | operator[] (size_t i) |
Non-constant subscript operator. | |
const float & | operator[] (size_t i) const |
Constant subscript operator. | |
Vecnf< n > | operator- (void) const |
Negation operator. | |
Vecnf< n > | operator * (float f) const |
Vector multiplication with a scalar operator. | |
float | operator * (const Vecnf< n > &v) const |
Vector multiplication with a vector (i.e. dot product) operator. | |
Vecnf< n > | operator/ (float f) const |
Vector division by a scalar operator. | |
Vecnf< n > | operator+ (const Vecnf< n > &v) const |
Vector addition operator. | |
Vecnf< n > | operator- (const Vecnf< n > &v) const |
Vector subtraction operator. | |
bool | operator== (const Vecnf< n > &v) const |
Equality operator. | |
bool | operator!= (const Vecnf< n > &v) const |
Inequality operator. | |
Vecnf< n > & | operator= (const Vecnf< n > &v) |
Assignment operator. | |
Vecnf< n > & | operator *= (float f) |
Vector multiplication with a scalar and assignment operator. | |
Vecnf< n > & | operator/= (float f) |
Vector division by a scalar and assignment operator. | |
Vecnf< n > & | operator+= (const Vecnf< n > &v) |
Vector addition and assignment operator. | |
Vecnf< n > & | operator-= (const Vecnf< n > &v) |
Vector subtraction and assignment operator. | |
const float * | getPtr (void) const |
Get a constant pointer to the floats of the vector. | |
float | normalize (void) |
Normalize the vector and return the previous length. | |
void | orthogonalize (const Vecnf< n > &v) |
Orthogonolize the vector with respect to a vector. | |
void | orthonormalize (const Vecnf< n > &v) |
Orthonormalize the vector with respect to an other. | |
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) |
|
Default constructor. For performance reasons no initialization is performed. |
|
Copy constructor.
|
|
Non-constant subscript operator.
|
|
Constant subscript operator.
|
|
Negation operator.
Reimplemented in nvmath::Vec3f. |
|
Vector multiplication with a scalar operator.
|
|
Vector multiplication with a vector (i.e. dot product) operator.
|
|
Vector division by a scalar operator.
|
|
Vector addition operator.
|
|
Vector subtraction operator.
|
|
Equality operator.
|
|
Inequality operator.
|
|
Assignment operator.
|
|
Vector multiplication with a scalar and assignment operator.
|
|
Vector division by a scalar and assignment operator.
|
|
Vector addition and assignment operator.
|
|
Vector subtraction and assignment operator.
|
|
Get a constant pointer to the floats of the vector.
|
|
Normalize the vector and return the previous length.
|
|
Orthogonolize the vector with respect to a vector. Sets the vector to be orthogonal to v.
|
|
Orthonormalize the vector with respect to an other. Sets the vector to be orthonormal to v.
|
|
Test if two vectors are orthogonal to each other.
|
|
Test if two vectors are orthonormal to each other. Two vectors are orthonormal if they are normalized and orthogonal to each other.
|
|
Test if two vectors are similar to each other. Two vectors are considered to be similar if they differ within a given tolerance in each component.
|
|
Determine the distance between two points.
|
|
Test if a vector is normalized. A vector is normalized if its length is one.
|
|
Test if a vector is a null vector. A vector is a null vector if its length is zero.
|
|
Calculate the length of a vector.
|
|
Calculate the squared length of a vector.
|
|
Get the maximal absolute value of a vector.
|
|
Get the minimal element of a vector.
|
|
Multiplication of a scalar with a vector.
|