All Classes |Grouped Classes |Index

Class CL_Point

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

Derived from:

public CL_Pointx< int >

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

CL_Point

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.

operator[]

operator int *

operator int *const

operator+=

+= operator.

operator+

+ operator.

operator-=

-= operator.

operator-

operator *=

*= operator.

operator *

* operator.

operator/=

/= operator.

operator/

/ operator.

operator==

== operator.

operator!=

!= operator.

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.