|
| Vec4 () |
|
| Vec4 (const Type &p1, const Type &p2, const Type &p3, const Type &p4) |
|
| Vec4 (const Type &p1, const Type &p2, const Vec2< Type > ©34) |
|
| Vec4 (const Type &scalar) |
|
| Vec4 (const Type *array_xyzw) |
|
| Vec4 (const Vec2< Type > ©, const Type &p3, const Type &p4) |
|
| Vec4 (const Vec2< Type > ©, const Vec2< Type > ©34) |
|
| Vec4 (const Vec3< Type > ©, const Type &p4) |
|
double | length3 () const |
|
float | length3 () const |
|
double | length4 () const |
|
float | length4 () const |
|
|
void | set_xy (const Vec2< Type > &new_v) |
|
void | set_zw (const Vec2< Type > &new_v) |
|
Type | length3 () const |
| Returns the length (magnitude) of this vector (not taking into account the w ordinate). More...
|
|
Type | length4 () const |
| Returns the length (magnitude) of this vector (taking into account the w ordinate). More...
|
|
Vec4< Type > & | normalize3 () |
| Normalizes this vector (not taking into account the w ordinate) More...
|
|
Vec4< Type > & | normalize4 () |
| Normalizes this vector (taking into account the w ordinate) More...
|
|
Type | dot3 (const Vec4< Type > &vector) const |
| Dot products this vector with an other vector (not taking into account the w ordinate). More...
|
|
Type | dot4 (const Vec4< Type > &vector) const |
| Dot products this vector with an other vector (taking into account the w ordinate). More...
|
|
Angle | angle3 (const Vec4< Type > &vector) const |
| Calculate the angle between this vector and an other vector (not taking into account the w ordinate). More...
|
|
Type | distance3 (const Vec4< Type > &vector) const |
| Calculate the distance between this vector and an other vector (not taking into account the w ordinate). More...
|
|
Type | distance4 (const Vec4< Type > &vector) const |
| Calculate the distance between this vector and an other vector (taking into account the w ordinate). More...
|
|
Vec4< Type > & | cross3 (const Vec4< Type > &vector) |
| Calculate the cross product between this vector and an other vector (not taking into account the w ordinate). More...
|
|
Vec4< Type > & | rotate3 (const Angle &angle, const Vec4< Type > &axis) |
| Rotate this vector around an axis. Same as glRotate[f|d](angle, a);. More...
|
|
Vec4< Type > & | round () |
| Rounds all components on this vector. More...
|
|
bool | is_equal (const Vec4< Type > &other, Type epsilon) const |
| Returns true if equal within the bounds of an epsilon. More...
|
|
|
void | operator+= (const Vec4< Type > &vector) |
| += operator. More...
|
|
void | operator+= (Type value) |
| += operator. More...
|
|
void | operator-= (const Vec4< Type > &vector) |
| -= operator. More...
|
|
void | operator-= (Type value) |
| -= operator. More...
|
|
Vec4< Type > | operator- () const |
|
More...
|
|
void | operator*= (const Vec4< Type > &vector) |
| *= operator. More...
|
|
void | operator*= (Type value) |
| *= operator. More...
|
|
void | operator/= (const Vec4< Type > &vector) |
| /= operator. More...
|
|
void | operator/= (Type value) |
| /= operator. More...
|
|
Vec4< Type > & | operator= (const Vec4< Type > &vector) |
| = operator. More...
|
|
bool | operator== (const Vec4< Type > &vector) const |
| == operator. More...
|
|
bool | operator!= (const Vec4< Type > &vector) const |
| != operator. More...
|
|
bool | operator< (const Vec4< Type > &vector) const |
| < operator. More...
|
|
|
static Vec4< Type > | cross3 (const Vec4< Type > &vector1, const Vec4< Type > &vector2) |
| Calculate the cross product between two vectors (not taking into account the w ordinate). More...
|
|
static Type | dot3 (const Vec4< Type > &vector1, const Vec4< Type > &vector2) |
| Dot products between two vectors (not taking into account the w ordinate). More...
|
|
static Type | dot4 (const Vec4< Type > &vector1, const Vec4< Type > &vector2) |
| Dot products between two vectors (taking into account the w ordinate). More...
|
|
static bool | is_equal (const Vec4< Type > &first, const Vec4< Type > &second, Type epsilon) |
| Returns true if equal within the bounds of an epsilon. More...
|
|
static Vec4< Type > | normalize3 (const Vec4< Type > &vector) |
| Normalizes a vector (not taking into account the w ordinate) More...
|
|
static Vec4< Type > | normalize4 (const Vec4< Type > &vector) |
| Normalizes a vector (taking into account the w ordinate) More...
|
|
static Vec4< Type > | rotate3 (const Vec4< Type > &vector, const Angle &angle, const Vec4< Type > &axis) |
| Rotate a vector around an axis. Same as glRotate[f|d](angle, a);. More...
|
|
static Vec4< Type > | round (const Vec4< Type > &vector) |
| Rounds all components on a vector. More...
|
|
template<typename Type>
class clan::Vec4< Type >
4D vector
These vector templates are defined for:
char (Vec4c), unsigned char (Vec4uc), short (Vec4s),
unsigned short (Vec4us), int (Vec4i), unsigned int (Vec4ui), float (Vec4f), double (Vec4d)