All Classes |Grouped Classes |Index

Class CL_Pointx

2D (x,y) point structure. More...

Derived from:

public CL_Vec2< Type >

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Attributes:

normalize

Normalizes this vector.

dot

Dot products this vector with an other vector.

round

Rounds all components of this vector.

rotate

Rotate this vector around another point.

length

Returns the length (magnitude) of this vector.

angle

Calculate the angle between this vector and an other vector.

distance

Calculate the distance between this vector and an other vector.

round_value

Rounds a value for the datatype.


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_Pointx

normalize

Normalizes a vector.

dot

Dot products a vector with an other vector.

round

Rounds all components on a vector.

rotate

Rotate a vector around another point.

calc_origin

Returns the anchor point for the origin within the dimensions of the size structure.

Detailed description:

These point templates are defined for: int ( CL_Point ), float ( CL_Pointf ), double ( CL_Pointd )