Constructor
-
new Point(x, y)
-
Simple object containing coordinates on two dimensional plane. Used by AbstractShapes
and WhiteboardSurfaces.Parameters:
Name Type Description x
Number y
Number
Methods
-
getX() → {Number}
-
Gets the X coordinate.
Returns:
{ Number }
-
getY() → {Number}
-
Gets the Y coordinate.
Returns:
{ Number }
-
setX(x) → {void}
-
Sets the X coordinate.
Parameters:
Name Type Description x
Number X coordinate
Returns:
{ void }
-
setY(y) → {void}
-
Sets the Y coordinate.
Parameters:
Name Type Description y
Number Y coordinate
Returns:
{ void }