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:

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.

angle_relative

Calculate the angle between this vector relative to another vector.

distance

Calculate the distance between this vector and an other vector.

round_value

Rounds a value for the datatype.


Operators:

operator[]

operator int *

operator int *const

operator+=

+= operator.

operator+

operator-=

-= operator.

operator-

operator*=

*= operator.

operator*

operator/=

/= operator.

operator/

/ operator.

operator==

== operator.

operator!=

!= operator.

CL_Point

calc_origin

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

dot

Dot products a vector with an other vector.

normalize

Normalizes a vector.

rotate

Rotate a vector around another point.

round

Rounds all components on a vector.