|
| SbVec4d () |
| Default constructor.
|
|
| SbVec4d (const double v[4]) |
| Constructor given vector components.
|
|
| SbVec4d (double x, double y, double z, double w) |
| Constructor given vector components.
|
|
double | dot (const SbVec4d &v) const |
| Returns dot (inner) product of vector and another vector.
|
|
void | getReal (SbVec3d &v) const |
| Returns the real portion of the vector by dividing by the fourth value.
|
|
const double * | getValue () const |
| Returns vector components.
|
|
void | getValue (double &x, double &y, double &z, double &w) const |
| Returns vector components.
|
|
double | length () const |
| Returns geometric length of vector.
|
|
double | lengthSquared () const |
| Returns square length of vector.
|
|
void | negate () |
| Negates each component of vector in place.
|
|
double | normalize () |
| Changes vector to be unit length.
|
|
SbVec4d & | setValue (const double v[4]) |
| Sets the vector components.
|
|
SbVec4d & | setValue (double x, double y, double z, double w) |
| Sets the vector components.
|
|
SbVec4d & | setValue (const SbVec4f &vec4f) |
| Sets value of vector from a single precision vector.
|
|
double & | operator[] (int i) |
| Accesses indexed component of vector.
|
|
const double & | operator[] (int i) const |
|
SbVec4d & | operator*= (double d) |
| Component-wise scalar multiplication operator.
|
|
SbVec4d & | operator/= (double d) |
| Component-wise scalar division operator.
|
|
SbVec4d & | operator+= (const SbVec4d &u) |
| Component-wise vector addition operator.
|
|
SbVec4d & | operator-= (const SbVec4d &u) |
| Component-wise vector subtraction operator.
|
|
SbVec4d | operator- () const |
| Nondestructive unary negation - returns a new vector.
|
|
SbBool | equals (const SbVec4d &v, double tolerance) const |
| Equality comparison within given tolerance - the square of the length of the maximum distance between the two vectors.
|
|
template<typename T > |
| SbVec4d (const T &v) |
| Constructor that converts an arbitrary SbVec4 to an SbVec4d.
|
|
4D vector class (double precision).
4D vector class used to store homogeneous coordinates. 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, SbVec3d, SbVec3f, SbVec3i32, SbVec3s, SbVec4b, SbVec4f, SbVec4i32, SbVec4s, SbVec4ub, SbVec4ui32, SbVec4us
Definition at line 2427 of file SbVec.h.