new Point(x, y)
Creates a new Point with an x and y coordinate.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | the x-coordinate |
y |
number | the y-coordinate |
A utility class that represents a point with an x and y coordinate.
Creates a new Point with an x and y coordinate.
Name | Type | Description |
---|---|---|
x |
number | the x-coordinate |
y |
number | the y-coordinate |