class csVector3 A 3D vector
| | x |
| | y |
| | z |
| | csVector3 (float m) Make a new initialized vector |
| | csVector3 (float x, float y, float z = 0) Make a new vector and initialize with the given values. |
| | csVector3 () Make a new vector |
| | Norm () Returns the norm of this vector. |
| | Norm (const csVector3& v) Returns the norm (magnitude) of a vector. |
| | operator!= (const csVector3& v1, const csVector3& v2) Check if two vectors are not equal. |
| | operator% (const csVector3& v1, const csVector3& v2) Take the cross product of two vectors. |
| | operator* (const csVector3& v, float f) Multiply a vector and a scalar. |
| | operator* (const csVector3& v1, const csVector3& v2) Take the dot product of two vectors. |
| | operator* (float f, const csVector3& v) Multiply a vector and a scalar. |
| | operator*= (float f) Multiply this vector by a scalar. |
| | operator+ (const csVector3& v1, const csVector3& v2) Add two vectors. |
| | operator+ () Unary + operator. |
| | operator+= (const csVector3& v) Add another vector to this vector. |
| | operator- () Unary - operator. |
| | operator- (const csVector3& v1, const csVector3& v2) Subtract two vectors. |
| | operator-= (const csVector3& v) Subtract another vector from this vector. |
| | operator/ (const csVector3& v, float f) Divide a vector by a scalar. |
| | operator/= (float f) Divide this vector by a scalar. |
| | operator< (const csVector3& v, float f) Test if each component of a vector is less than a small epsilon value. |
| | operator<< (const csVector3& v1, const csVector3& v2) Project one vector onto another. |
| | operator== (const csVector3& v1, const csVector3& v2) Check if two vectors are equal. |
| | operator> (float f, const csVector3& v) Test if each component of a vector is greater than a small epsilon value. |
| | operator>> (const csVector3& v1, const csVector3& v2) Project one vector onto another. |
| | operator[] (int n) Returns n-th component of the vector |
| | Set (float sx, float sy, float sz) Set the value of this vector. |
| | Unit () Returns the unit vector in the direction of this vector |
A 3D vector
float y
float z
csVector3()
csVector3(float m)
csVector3(float x, float y, float z = 0)
inline friend csVector3 operator+ (const csVector3& v1, const csVector3& v2)
inline friend csVector3 operator- (const csVector3& v1, const csVector3& v2)
inline friend float operator* (const csVector3& v1, const csVector3& v2)
inline friend csVector3 operator% (const csVector3& v1, const csVector3& v2)
inline friend csVector3 operator* (const csVector3& v, float f)
inline friend csVector3 operator* (float f, const csVector3& v)
inline friend csVector3 operator/ (const csVector3& v, float f)
inline friend bool operator== (const csVector3& v1, const csVector3& v2)
inline friend bool operator!= (const csVector3& v1, const csVector3& v2)
inline friend csVector3 operator>> (const csVector3& v1, const csVector3& v2)
inline friend csVector3 operator<< (const csVector3& v1, const csVector3& v2)
inline friend bool operator< (const csVector3& v, float f)
inline friend bool operator> (float f, const csVector3& v)
inline float operator[](int n)
inline csVector3& operator+= (const csVector3& v)
inline csVector3& operator-= (const csVector3& v)
inline csVector3& operator*= (float f)
inline csVector3& operator/= (float f)
inline csVector3 operator+ ()
inline csVector3 operator- ()
inline void Set(float sx, float sy, float sz)
float Norm()
csVector3 Unit()
inline static float Norm(const csVector3& v)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de