Direction (class)

Simple class for modelling a direction

class Direction(x, y)
Arguments:
  • x (int) – X coordinate
  • y (int) – Y coordinate
Deprecated:

Since version 0.5. You should now plain Object instead: {x:234, y:123}

Direction.x
Type:number

X value

Direction.y
Type:number

Y value