Class: Axes

Axes

An object that represents a two-dimensional coordinate system.

new Axes (origin, degree)

Returns new axes.

Name Type Description
origin Point

The point of axes origin.

degree Number

the rotation of the coordinate system relative
to the original coordinate system.

Members

degree

Returns the rotation angle of the coordinate system relative
to the original coordinate system.

origin

Returns a point of axes origin.

x

Returns x-axis vector2 of this axes.

y

Returns y-axis vector2 of this axes.

Methods

point (point)

Returns the coordinate of the point in this axes.

Name Type Description
point Point

The point.

reAxes ()Axes

Returns the inverse coordinate system of the current coordinate system.

Returns:
Type Description
Axes

shadow (vector2)Vector2

Returns the projection of a vector2 in the current coordinate system.

Name Type Description
vector2 Vector2

The vector2.

Returns:
Type Description
Vector2