The Vector3d class stores a vector in 3D space.
The coordinates of the vector are accessed via public data members, x, y, and z, or via the subscript operator, where indices 0, 1, and 2 denote the x-, y-, and z- coordinates, respectively.
The operator '*' is the cross product of vectors, the operator '' is the dot product.
|
| Vector3d () |
|
| Vector3d (double xx, double yy, double zz) |
|
| Vector3d (const UnitVector3d &v) |
|
Vector3d | operator+ (const Vector3d &v) const |
|
Vector3d | operator- (const Vector3d &v) const |
|
double | operator% (const Vector3d &v) const |
|
double | operator% (const UnitVector3d &v) const |
|
Vector3d | operator* (const Vector3d &v) const |
| Cross product. More...
|
|
Vector3d | operator* (const UnitVector3d &v) const |
| Cross product. More...
|
|
Vector3d | operator- () const |
|
Vector3d | operator* (double scalar) const |
|
Vector3d | operator/ (double scalar) const |
|
double | operator[] (size_t index) const |
|
double & | operator[] (size_t index) |
|
double | length () const |
|
double | lengthSqrd () const |
|
double | lengthRect () const |
|
Vector3d & | normalize () |
|
Vector3d | getNormalized () const |
|
double | dist (const Vector3d &v) const |
|
double | distSqrd (const Vector3d &v) const |
|
double | distRect (const Vector3d &v) const |
|
bool | isEqual (const Vector3d &v, double epsSqrd=WSM_DISTANCE_TOL2) const |
|
bool | isEqualRect (const Vector3d &v, double epsRect=WSM_DISTANCE_TOL) const |
|
double | angle (const Vector3d &) const |
|
double | angleBetweenNormalized (const Vector3d &) const |
| For normalized vectors. More...
|
|
void | operator+= (const Vector3d &v) |
|
void | operator-= (const Vector3d &v) |
|
void | operator*= (double scalar) |
|
void | operator/= (double scalar) |
|
Vector3d | perpend () const |
|
void | operator*= (const Transf3d &) |
|
bool | isNull (double epsSqrd=WSM_MACHINE_TOL2) const |
|
bool | isParallel (const Vector3d &, double epsNorSqrd=WSM_ANGLE_TOL2) const |
|
bool | isParallelNorm (const Vector3d &, double epsNorSqrd=WSM_ANGLE_TOL2) const |
| For normalized vectors. More...
|
|
bool | isPerpend (const Vector3d &, double epsNor=WSM_ANGLE_TOL) const |
|
bool | isPerpend (const UnitVector3d &, double epsNor=WSM_ANGLE_TOL) const |
|
bool | isExactNull () const |
|
int | dominantDirection () const |
|
Vector3d & | set (double xx, double yy, double zz) |
|
Vector3d & | zero () |
|
Vector3d & | negate () |
|
Vector3d & | scale (const Vector3d &v) |
|
Vector3d | getScaled (const Vector3d &v) const |
|