Point Class
The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
Constructor
Point
(
-
x -
y
Parameters:
-
xFloatposition of the point on the x axis
-
yFloatposition of the point on the y axis
Methods
set
(
-
[x=0] -
[y=0]
Sets the point to a new x and y position. If y is ommited, both x and y will be set to x.
Parameters:
-
[x=0]Float optionalposition of the point on the x axis
-
[y=0]Float optionalposition of the point on the y axis
Properties
x
Float
Default: 0
y
Float
Default: 0
