Class: Cube

Cube

class of a Cube which provide a better navigation algorithm for grids

new Cube (x, y, z)

create a cube coordinates system
Name Type Description
x
y
z

Methods

convertToGridCoordinates ()Coordinates

convert self to the offset coordinates system
Returns:
Type Description
Coordinates

distanceTo (cube)number

get distance to cube
Name Type Description
cube Cube
Returns:
Type Description
number