|
Public Types |
| typedef Type | datatype |
Public Member Functions |
| | CL_Vec4 () |
| | CL_Vec4 (const CL_Vec1< Type > ©) |
| | CL_Vec4 (const CL_Vec2< Type > ©) |
| | CL_Vec4 (const CL_Vec3< Type > ©) |
| | CL_Vec4 (const Type &p1, const Type &p2=0, const Type &p3=0, const Type &p4=0) |
|
| *Type | length3 () const |
| | Returns the length (magnitude) of this vector (not taking into account the w ordinate).
|
| *Type | length4 () const |
| | Returns the length (magnitude) of this vector (taking into account the w ordinate).
|
| CL_Vec4< Type > & | normalize3 () |
| | Normalizes this vector (not taking into account the w ordinate).
|
| CL_Vec4< Type > & | normalize4 () |
| | Normalizes this vector (taking into account the w ordinate).
|
| Type | dot3 (const CL_Vec4< Type > &vector) const |
| | Dot products this vector with an other vector (not taking into account the w ordinate).
|
| Type | dot4 (const CL_Vec4< Type > &vector) const |
| | Dot products this vector with an other vector (taking into account the w ordinate).
|
| CL_Angle | angle3 (const CL_Vec4< Type > &vector) const |
| | Calculate the angle between this vector and an other vector (not taking into account the w ordinate).
|
| Type | distance3 (const CL_Vec4< Type > &vector) const |
| | Calculate the distance between this vector and an other vector (not taking into account the w ordinate).
|
| Type | distance4 (const CL_Vec4< Type > &vector) const |
| | Calculate the distance between this vector and an other vector (taking into account the w ordinate).
|
| CL_Vec4< Type > & | cross3 (const CL_Vec4< Type > &vector) |
| | Calculate the cross product between this vector and an other vector (not taking into account the w ordinate).
|
| CL_Vec4< Type > & | rotate3 (const CL_Angle &angle, const CL_Vec4< Type > &axis) |
| | Rotate this vector around an axis. Same as glRotate[f|d](angle, a);.
|
| CL_Vec4< Type > & | round () |
| | Rounds all components on this vector.
|
|
| const Type & | operator[] (unsigned int i) const |
| Type & | operator[] (unsigned int i) |
| | operator Type * () |
| | operator Type *const () const |
| void | operator+= (const CL_Vec4< Type > &vector) |
| | += operator.
|
| void | operator+= (Type value) |
| | += operator.
|
| CL_Vec4< Type > | operator+ (const CL_Vec4< Type > &vector) const |
| | + operator.
|
| CL_Vec4< Type > | operator+ (Type value) const |
| | + operator.
|
| void | operator-= (const CL_Vec4< Type > &vector) |
| | -= operator.
|
| void | operator-= (Type value) |
| | -= operator.
|
| CL_Vec4< Type > | operator- (const CL_Vec4< Type > &vector) const |
| |
|
| CL_Vec4< Type > | operator- (Type value) const |
| |
|
| void | operator *= (const CL_Vec4< Type > &vector) |
| | *= operator.
|
| void | operator *= (Type value) |
| | *= operator.
|
| CL_Vec4< Type > | operator * (const CL_Vec4< Type > &vector) const |
| | * operator.
|
| CL_Vec4< Type > | operator * (Type value) const |
| | * operator.
|
| void | operator/= (const CL_Vec4< Type > &vector) |
| | /= operator.
|
| void | operator/= (Type value) |
| | /= operator.
|
| CL_Vec4< Type > | operator/ (const CL_Vec4< Type > &vector) const |
| | / operator.
|
| CL_Vec4< Type > | operator/ (Type value) const |
| | / operator.
|
| CL_Vec4< Type > & | operator= (const CL_Vec4< Type > &vector) |
| | = operator.
|
| bool | operator== (const CL_Vec4< Type > &vector) const |
| | == operator.
|
| bool | operator!= (const CL_Vec4< Type > &vector) const |
| | != operator.
|
Static Public Member Functions |
| static CL_Vec4< Type > | normalize3 (const CL_Vec4< Type > &vector) |
| | Normalizes a vector (not taking into account the w ordinate).
|
| static CL_Vec4< Type > | normalize4 (const CL_Vec4< Type > &vector) |
| | Normalizes a vector (taking into account the w ordinate).
|
| static Type | dot3 (const CL_Vec4< Type > &vector1, const CL_Vec4< Type > &vector2) |
| | Dot products between two vectors (not taking into account the w ordinate).
|
| static Type | dot4 (const CL_Vec4< Type > &vector1, const CL_Vec4< Type > &vector2) |
| | Dot products between two vectors (taking into account the w ordinate).
|
| static CL_Vec4< Type > | cross3 (const CL_Vec4< Type > &vector1, const CL_Vec4< Type > &vector2) |
| | Calculate the cross product between two vectors (not taking into account the w ordinate).
|
| static CL_Vec4< Type > | rotate3 (const CL_Vec4< Type > &vector, const CL_Angle &angle, const CL_Vec4< Type > &axis) |
| | Rotate a vector around an axis. Same as glRotate[f|d](angle, a);.
|
| static CL_Vec4< Type > | round (const CL_Vec4< Type > &vector) |
| | Rounds all components on a vector.
|