Class: Direction

Direction(x, y)

The direction a piece is moving

Constructor

new Direction(x, y)

Create a direction.
Parameters:
Name Type Description
x number The value of the direction in the x-axis.
y number The value of the direction in the y-axis.
Source:

Members

x :number

Type:
  • number
Source:

y :number

Type:
  • number
Source: