Home |All Classes |Grouped Classes |Index |Search

Class CL_Vec2

2D 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.

dot

Dot products this vector with an other vector.

angle

Calculate the angle between this vector and an other vector.

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_Vec2

Detailed description:

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