Home |All Classes |Grouped Classes |Index |Search

Class CL_Vec4

4D vector More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Attributes:

length

Returns the length (magnitude) of the vector.

normalize

Normalizes the vector (not taking into account the w ordinate!).

dot

Dot products this vector with an other vector.

angle

Calculate the angle between this vector and an other vector.

cross

Calculate the cross product between this vector and an other vector.

rotate

Rotate vector around an axis. Same as glRotate[f|d](angle, a);.

round

Rounds all components.


Operators:

operator[]

operator Type *

operator Type *const

operator+=

+= operator.

operator+

+ operator.

operator-=

-= operator.

operator-

operator *=

*= operator.

operator *

* operator.

operator/=

/= operator.

operator/

/ operator.

operator==

== operator.

operator!=

!= operator.

CL_Vec4

Detailed description:

These vector templates are defined for: char, unsigned char, short, unsigned short, int, unsigned int, float, double