|
| SbVec3d () |
| Default constructor.
|
|
| SbVec3d (const double v[3]) |
| Constructor given vector components.
|
|
| SbVec3d (double x, double y, double z) |
| Constructor given vector components.
|
|
| SbVec3d (SbPlane &p0, SbPlane &p1, SbPlane &p2) |
| Constructor given 3 planes.
|
|
SbVec3d | cross (const SbVec3d &v) const |
| Returns right-handed cross product of vector and another vector.
|
|
double | dot (const SbVec3d &v) const |
| Returns dot (inner) product of vector and another vector.
|
|
const double * | getValue () const |
| Returns vector components.
|
|
void | getValue (double &x, double &y, double &z) const |
| Returns vector components.
|
|
double | length () const |
| Returns geometric length of vector.
|
|
double | lengthSquared () const |
| Returns square length of vector.
|
|
double | normalize () |
| Changes vector to be unit length, returning the length before normalization.
|
|
void | negate () |
| Negates each component of vector in place.
|
|
SbVec3d & | setValue (const double v[3]) |
| Sets the vector components.
|
|
SbVec3d & | setValue (double x, double y, double z) |
| Sets the vector components.
|
|
SbVec3d & | setValue (const SbVec3d &barycentic, const SbVec3d &v0, const SbVec3d &v1, const SbVec3d &v2) |
| Sets value of vector as the weighted average of 3 other vectors.
|
|
SbVec3d & | setValue (const SbVec3f &vec3f) |
| Sets value of vector from a single precision vector.
|
|
double & | operator[] (int i) |
| Accesses indexed component of vector.
|
|
const double & | operator[] (int i) const |
|
SbVec3d & | operator*= (double d) |
| Component-wise scalar multiplication operator.
|
|
SbVec3d & | operator/= (double d) |
| Component-wise scalar division operator.
|
|
SbVec3d & | operator+= (const SbVec3d &v) |
| Component-wise vector addition operator.
|
|
SbVec3d & | operator-= (const SbVec3d &v) |
| Component-wise vector subtraction operator.
|
|
SbVec3d | operator- () const |
| Nondestructive unary negation - returns a new vector.
|
|
SbVec3d | operator* (const SbVec3d &v) const |
| Component-wise vector multiplication operator.
|
|
SbVec3d & | operator*= (const SbVec3d &v) |
| Component-wise vector multiplication operator.
|
|
SbBool | equals (const SbVec3d &v, double tolerance) const |
| Equality comparison within given tolerance - the square of the length of the maximum distance between the two vectors.
|
|
SbVec3d | getClosestAxis () const |
| Returns principal axis that is closest (based on maximum dot product) to this vector.
|
|
template<typename T > |
| SbVec3d (const T &v) |
| Constructor that converts an arbitrary SbVec3 to an SbVec3d.
|
|
3D vector class (double precision).
3D vector class used to store 3D vectors and points. Although Open Inventor fields still store only single precision values, for certain applications it is useful and convenient to be able to store and manipulate double precision values, for example, double precision coordinate data or values that will be used for further computation.
SEE ALSO
SbRotation, SbRotationd, SbVec2d, SbVec2f, SbVec2i32, SbVec2s, SbVec3f, SbVec3i32, SbVec3s, SbVec4b, SbVec4d, SbVec4f, SbVec4i32, SbVec4s, SbVec4ub, SbVec4ui32, SbVec4us
Definition at line 1214 of file SbVec.h.