|
| MbVec3 () |
| Constructor (vector is initialized to zero values)
|
|
| MbVec3 (const _T v[3]) |
| Constructor.
|
|
| MbVec3 (_T x, _T y, _T z) |
| Constructor.
|
|
template<typename _Type > |
| MbVec3 (_Type x, _Type y, _Type z) |
|
| MbVec3 (char v) |
| Constructor.
|
|
| MbVec3 (unsigned char v) |
| Constructor.
|
|
| MbVec3 (short v) |
| Constructor.
|
|
| MbVec3 (unsigned short v) |
| Constructor.
|
|
| MbVec3 (int v) |
| Constructor.
|
|
| MbVec3 (size_t v) |
| Constructor.
|
|
| MbVec3 (long v) |
| Constructor.
|
|
| MbVec3 (float v) |
| Constructor.
|
|
| MbVec3 (double v) |
| Constructor.
|
|
| MbVec3 (long double v) |
| Constructor.
|
|
template<typename _MbVec3T > |
| MbVec3 (const _MbVec3T &v) |
| Constructor.
|
|
MbVec3 | cross (const MbVec3< _T > &v) const |
| Returns right-handed cross product of vector and another vector.
|
|
_T | dot (const MbVec3< _T > &v) const |
| Returns dot (inner) product of vector and another vector.
|
|
const _T * | getValue () const |
| Returns pointer to vector components.
|
|
void | getValue (_T &x, _T &y, _T &z) const |
| Returns vector components.
|
|
_T | length () const |
| Returns geometric length of vector.
|
|
_T | normalize () |
| Changes vector to be unit length, returning the length before normalization.
|
|
void | negate () |
| Negates each component of vector in place.
|
|
MbVec3 | mult (const MbVec3< _T > &v) const |
| Component-wise vector multiplication.
|
|
MbVec3 | div (const MbVec3< _T > &v) const |
| Component-wise vector division.
|
|
MbVec3< _T > & | setValue (const _T v[3]) |
| Sets the vector components.
|
|
MbVec3< _T > & | setValue (_T x, _T y, _T z) |
| Sets the vector components.
|
|
_T & | operator[] (int i) |
| Accesses indexed component of vector.
|
|
const _T & | operator[] (int i) const |
|
_T & | operator[] (size_t i) |
|
const _T & | operator[] (size_t i) const |
|
MbVec3 & | operator= (_T d) |
| Component-wise setting.
|
|
MbVec3 & | operator*= (_T d) |
| Component-wise scalar multiplication operator.
|
|
MbVec3 & | operator/= (_T d) |
| Component-wise scalar division operator.
|
|
MbVec3 & | operator+= (const MbVec3 &v) |
| Component-wise vector addition operator.
|
|
MbVec3 & | operator-= (const MbVec3 &v) |
| Component-wise vector subtraction operator.
|
|
MbVec3 | operator- () const |
| Nondestructive unary negation - returns a new vector.
|
|
bool | equals (const MbVec3 &v, _T tolerance) const |
| Equality comparison within given tolerance - the square of the length of the maximum distance between the two vectors.
|
|
bool | equals (const MbVec3 &v) const |
| Equality comparison within the machine epsilon given by the numeric_limits<_T> Square of the length of the maximum distance between the two vectors.
|
|
|
MbVec3 | operator* (const MbVec3 &v1, const MbVec3 &v2) |
| Component-wise vector multiplication operator.
|
|
MbVec3 | operator* (const MbVec3 &v, _T d) |
| Component-wise binary scalar multiplication operator.
|
|
MbVec3 | operator* (_T d, const MbVec3 &v) |
| Component-wise binary scalar multiplication operator.
|
|
MbVec3 | operator/ (const MbVec3 &v, _T d) |
| Component-wise binary scalar division operator.
|
|
MbVec3 | operator/ (const MbVec3 &v1, const MbVec3 &v2) |
| Component-wise vector division operator.
|
|
MbVec3 | operator+ (const MbVec3 &v1, const MbVec3 &v2) |
| Component-wise binary vector addition operator.
|
|
MbVec3 | operator+ (const MbVec3 &v, _T d) |
| Component-wise binary scalar addition operator.
|
|
MbVec3 | operator+ (_T d, const MbVec3 &v) |
| Component-wise binary scalar addition operator.
|
|
MbVec3 | operator- (const MbVec3 &v1, const MbVec3 &v2) |
| Component-wise binary vector subtraction operator.
|
|
MbVec3 | operator- (const MbVec3 &v, _T d) |
| Component-wise binary scalar subtraction operator.
|
|
MbVec3 | sqrt (const MbVec3 &v) |
| Component-wise vector square root operator.
|
|
bool | operator== (const MbVec3 &v1, const MbVec3 &v2) |
| Equality comparison operator.
|
|
bool | operator!= (const MbVec3 &v1, const MbVec3 &v2) |
| Inequality comparison operator.
|
|
bool | operator< (const MbVec3 &v1, const MbVec3 &v2) |
| Length comparison operator.
|
|
bool | operator<= (const MbVec3 &v1, const MbVec3 &v2) |
| Length comparison operator.
|
|
bool | operator> (const MbVec3 &v1, const MbVec3 &v2) |
| Length comparison operator.
|
|
bool | operator>= (const MbVec3 &v1, const MbVec3 &v2) |
| Length comparison operator.
|
|
bool | areCollinear (const MbVec3< _T > &v1, const MbVec3< _T > &v2, _T tol) |
| Returns true if vectors are collinear within the given tolerance.
|
|
bool | areCollinear (const MbVec3< _T > &v1, const MbVec3< _T > &v2) |
| Returns true if vectors are collinear within the machine epsilon given by the numeric_limits<_T>
|
|
std::ostream & | operator<< (std::ostream &os, const MbVec3 &v) |
| Writes the vector to the specified output stream.
|
|
template<typename _T>
class MbVec3< _T >
Class defining a vector or a point of 3 coordinates.
3D vector class used to store 3D vectors and points. This class is similar to the standard Open Inventor SbVec3 classes, but exists to allow MeshViz Extraction to be used independently of Open Inventor.
Definition at line 51 of file MbVec3.h.