Constructor
new Point(x, y)
Create a point.
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number | The x co-ordinate. |
y |
number | The x co-ordinate. |
Methods
add(point) → {Point}
Add two points together.
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Point | The other point. |
Returns:
- Type
- Point
eq(point) → {boolean}
Are the points equal?
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Point | The other point. |
Returns:
- Type
- boolean
notEq(point) → {boolean}
Are the points not equal?
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Point | The other point. |
Returns:
- Type
- boolean