Point
class Point
represents a point in a 2d space
Summary
Properties from Point
string |
|
number |
|
number |
|
Methods from Point
Point |
|
boolean |
|
Point |
|
Public Properties
Public Methods
equals(x: number | Point | Vector2d, y: number) → {boolean}
return true if this point is equal to the given point
Type | Description |
---|---|
boolean |
set(x: number, y: number) → {Point}
set the Point x and y properties to the given values
Name | Type | Default | Description |
---|---|---|---|
x | number | 0 | |
y | number | 0 |
Type | Description |
---|---|
Point |
Reference to this object for method chaining |