#include <vmath.h>
Public Member Functions | |
| Vector4 () | |
| Vector4 (T nx, T ny, T nz, T nw) | |
| Vector4< T > | operator= (const Vector4< T > &rhs) |
| T & | operator[] (int n) |
| Vector4< T > | operator+ (const Vector4< T > &rhs) const |
| Vector4< T > | operator- (const Vector4< T > &rhs) const |
| Vector4< T > | operator * (const Vector4< T > rhs) const |
| Vector4< T > | operator/ (const Vector4< T > &rhs) const |
| Vector4< T > & | operator+= (const Vector4< T > &rhs) |
| Vector4< T > & | operator-= (const Vector4< T > &rhs) |
| Vector4< T > & | operator *= (const Vector4< T > &rhs) |
| Vector4< T > & | operator/= (const Vector4< T > &rhs) |
| bool | operator== (const Vector4< T > &rhs) const |
| bool | operator!= (const Vector4< T > &rhs) const |
| Vector4< T > | operator+ (T rhs) const |
| Vector4< T > | operator- (T rhs) const |
| Vector4< T > | operator * (T rhs) const |
| Vector4< T > | operator/ (T rhs) const |
| Vector4< T > & | operator+= (T rhs) |
| Vector4< T > & | operator-= (T rhs) |
| Vector4< T > & | operator *= (T rhs) |
| Vector4< T > & | operator/= (T rhs) |
| T | length () const |
| void | normalize () |
| T | lengthSq () const |
| Vector4< T > | lerp (T fact, const Vector4< T > &r) const |
| operator T * () | |
| operator const T * () const | |
Friends | |
| std::ostream & | operator<< (std::ostream &lhs, const Vector4< T > &rhs) |
Creates and sets to (x,y,z,z)
| nx | intial x-coordinate value (R) | |
| ny | intial y-coordinate value (G) | |
| nz | intial z-coordinate value (B) | |
| nw | intial w-coordinate value (Aplha) |
Copy operator
| rhs | Right hand side argument of binary operator. |
| T& Vector4< T >::operator[] | ( | int | n | ) | [inline] |
Array access operator
| n | Array index |
Addition operator
| rhs | Right hand side argument of binary operator. |
Substraction operator
| rhs | Right hand side argument of binary operator. |
Multiplication operator
| rhs | Right hand side argument of binary operator. |
Division operator
| rhs | Right hand side argument of binary operator. |
Addition operator
| rhs | Right hand side argument of binary operator. |
Substraction operator
| rhs | Right hand side argument of binary operator. |
Multiplication operator
| rhs | Right hand side argument of binary operator. |
Division operator
| rhs | Right hand side argument of binary operator. |
Equality test operator
| rhs | Right hand side argument of binary operator. |
Inequality test operator
| rhs | Right hand side argument of binary operator. |
Addition operator
| rhs | Right hand side argument of binary operator. |
Substraction operator
| rhs | Right hand side argument of binary operator. |
Multiplication operator
| rhs | Right hand side argument of binary operator. |
Division operator
| rhs | Right hand side argument of binary operator. |
Addition operator
| rhs | Right hand side argument of binary operator. |
Substraction operator
| rhs | Right hand side argument of binary operator. |
Multiplication operator
| rhs | Right hand side argument of binary operator. |
Division operator
| rhs | Right hand side argument of binary operator. |
| T Vector4< T >::length | ( | ) | const [inline] |
Get lenght of vector.
| void Vector4< T >::normalize | ( | ) | [inline] |
Normalize vector
| T Vector4< T >::lengthSq | ( | ) | const [inline] |
Linear interpolation of two vectors
| fact | Factor of interpolation. For translation from positon of this vector to vector r, values of factor goes from 0.0 to 1.0. | |
| r | Second Vector for interpolation |
| Vector4< T >::operator T * | ( | ) | [inline] |
Conversion to pointer operator
| Vector4< T >::operator const T * | ( | ) | const [inline] |
Conversion to pointer operator
| std::ostream& operator<< | ( | std::ostream & | lhs, | |
| const Vector4< T > & | rhs | |||
| ) | [friend] |
Output to stream operator
| lhs | Left hand side argument of operator (commonly ostream instance). | |
| rhs | Right hand side argument of operator. |
Second element of vector, alias for G-coordinate. For color notation.
Third element of vector, alias for B-coordinate. For color notation.
Fourth element of vector, alias for A-coordinate. For color notation. This represnt aplha chanell
First element of vector, alias for W-coordinate.
1.5.1-p1