Class: Point

Point(x, y)

A point on a grid

Constructor

new Point(x, y)

Create a point.
Parameters:
Name Type Description
x number The x co-ordinate.
y number The x co-ordinate.
Source:

Methods

add(point) → {Point}

Add two points together.
Parameters:
Name Type Description
point Point The other point.
Source:
Returns:
Type
Point

eq(point) → {boolean}

Are the points equal?
Parameters:
Name Type Description
point Point The other point.
Source:
Returns:
Type
boolean

notEq(point) → {boolean}

Are the points not equal?
Parameters:
Name Type Description
point Point The other point.
Source:
Returns:
Type
boolean