Class: Direction

Direction

Direction
A point value in which the y component is 0 and the x component
is positive or negative for a right or left direction,
or the x component is 0 and the y component is positive or negative for
an up or down direction.


new Direction(x, y)

Parameters:
Name Type Description
x

The horizontal component of the point.

y

The vertical component of the point.

Source:
Returns:

A new Direction object.