#include <vector.h>
Public Member Functions | |
| Vector3 () | |
| Vector3 (DBL w) | |
| Vector3 (DBL x, DBL y, DBL z) | |
| DBL & | operator[] (int i) |
| const DBL & | operator[] (int i) const |
| void | add (const Vector3 &v) |
| void | sub (const Vector3 &v) |
| void | scale (DBL s) |
| void | scale (const Vector3 &v) |
| void | normalize () |
| void | inverse () |
| void | applyFromLeft (const Matrix &m) |
| void | applyFromLeftTransposed (const Matrix &m) |
| void | rotate (const Vector3 &v) |
| void | minimize (const Vector3 &v) |
| void | maximize (const Vector3 &v) |
| Vector3 | scaled (DBL s) const |
| double | lengthSq () const |
| double | length () const |
| bool | equals (const Vector3 &v) const |
| unsigned int | hashValue () const |
| bool | operator< (const Vector3 &v) const |
| bool | operator== (const Vector3 &v) const |
| void | operator+= (const Vector3 &v) |
| void | operator-= (const Vector3 &v) |
| void | operator *= (DBL s) |
| Vector3 | operator * (DBL s) const |
Static Public Member Functions | |
| Vector3 | positiveInfinit () |
| Vector3 | negativeInfinit () |
| DBL | dotProd (const Vector3 &v, const Vector3 &w) |
| Vector3 | crossProd (const Vector3 &u, const Vector3 &v) |
| Vector3 | add (const Vector3 &v, const Vector3 &w) |
| Vector3 | sub (const Vector3 &v, const Vector3 &w) |
| DBL | distance (const Vector3 &v, const Vector3 &w) |
| Vector3 | deg2rad (const Vector3 &v) |
| Vector3 | rad2deg (const Vector3 &v) |
|
|
Create uninitialized vector. |
|
|
Create vector with same coifficients.
|
|
||||||||||||||||
|
Create vector from given coifficients. |
|
||||||||||||
|
Add two vectors. |
|
|
Add vector. |
|
|
Calculate v -> M*v.
|
|
|
Calculate v -> M^T * v.
|
|
||||||||||||
|
Calculate cross prodcut of two vectors.
|
|
|
Transforms a vector with rotation angles in degree into a corresponding one in radiants |
|
||||||||||||
|
Calculate distance between two points given as vectors. |
|
||||||||||||
|
Calculate dot product of two vectors.
|
|
|
Compare vector to other vector. |
|
|
Calucates hash-value for the vector. |
|
|
Inverse vector componentwise. Calculates 1/a for all coifficients. |
|
|
|
|
|
|
|
|
Maximize vector components. |
|
|
Minimize vector components. |
|
|
Returns vector describing (negative) infinit point. |
|
|
Normalize vector. Scale vector so that its length is 1. Note: Checking for 0-vector is not done here!! |
|
|
Same as scale |
|
|
Same as add. |
|
|
Same as sub. |
|
|
Introduce order between vectors. |
|
|
Same as equals. |
|
|
Access to the const vector's components. |
|
|
Access to the vector components. |
|
|
Returns vector describing (positive) infinit point. |
|
|
Transforms a vector with rotation angles in radiant into a corresponding one in degrees |
|
|
Rotates point corresponding to the vector around the origin by given x,y,z angles. |
|
|
Scale vector non-uniformly in its component. |
|
|
Scale vector by scalar. |
|
|
|
|
||||||||||||
|
Subtract two vectors. |
|
|
Subtract vector. |
1.3.8