src/utils/point.ts
Represents an ordered pair of integer x- and y-coordinates.
Properties |
Accessors |
constructor(x: number, y: number)
|
Creates an instance of Point. |
Private _x |
Type : number
|
x-coordinate of this Point. |
Private _y |
Type : number
|
y-coordinate of this Point. |
y | ||||||
gety()
|
||||||
Gets the y-coordinate of this Point.
Returns :
number
|
||||||
sety(y: number)
|
||||||
Sets the y-coordinate of this Point.
Parameters :
Returns :
void
|
x | ||||||
getx()
|
||||||
Gets the x-coordinate of this Point.
Returns :
number
|
||||||
setx(x: number)
|
||||||
Sets the x-coordinate of this Point.
Parameters :
Returns :
void
|
isEmpty |
getisEmpty()
|
Gets a value indicating whether this Point is empty.
Returns :
boolean
|