|
| SbVec3d () |
| Default constructor. More...
|
|
| SbVec3d (const double v[3]) |
| Constructor given vector components. More...
|
|
| SbVec3d (double x, double y, double z) |
| Constructor given vector components. More...
|
|
| SbVec3d (SbPlaned &p0, SbPlaned &p1, SbPlaned &p2) |
| Constructor given 3 planes. More...
|
|
SbVec3d | cross (const SbVec3d &v) const |
| Returns right-handed cross product of vector and another vector. More...
|
|
double | dot (const SbVec3d &v) const |
| Returns dot (inner) product of vector and another vector. More...
|
|
const double * | getValue () const |
| Returns vector components. More...
|
|
void | getValue (double &x, double &y, double &z) const |
| Returns vector components. More...
|
|
double | length () const |
| Returns geometric length of vector. More...
|
|
double | normalize () |
| Changes vector to be unit length, returning the length before normalization. More...
|
|
void | negate () |
| Negates each component of vector in place. More...
|
|
SbVec3d & | setValue (const double v[3]) |
| Sets the vector components. More...
|
|
SbVec3d & | setValue (double x, double y, double z) |
| Sets the vector components. More...
|
|
SbVec3d & | setValue (const SbVec3d &barycentic, const SbVec3d &v0, const SbVec3d &v1, const SbVec3d &v2) |
| Sets value of vector to be convex combination of 3 other vectors, using barycentic coordinates. More...
|
|
double & | operator[] (int i) |
| Accesses indexed component of vector. More...
|
|
const double & | operator[] (int i) const |
|
SbVec3d & | operator*= (double d) |
| Component-wise scalar multiplication and division operators. More...
|
|
SbVec3d & | operator/= (double d) |
| Component-wise scalar multiplication and division operators. More...
|
|
SbVec3d & | operator+= (SbVec3d v) |
| Component-wise vector addition and subtraction operators. More...
|
|
SbVec3d & | operator-= (SbVec3d v) |
| Component-wise vector addition and subtraction operators. More...
|
|
SbVec3d | operator- () const |
| Nondestructive unary negation - returns a new vector. More...
|
|
bool | equals (const SbVec3d v, double tolerance) const |
| Equality comparison within given tolerance em the square of the length of the maximum distance between the two vectors. More...
|
|
SbVec3d | getClosestAxis () const |
| Returns principal axis that is closest (based on maximum dot product) to this vector. More...
|
|
3D vector class used to store 3D vectors and points. This class is used throughout Inventor for arguments and return values. {}
- See Also
- SbVec2f, SbVec3f, SbVec4f, SbVec2d, SbVec4d, SbVec2s, SbRotation, SbRotationd
Definition at line 116 of file SbLineard.h.