This object represents a point in a 2D space.
Constructor function.
var myObject = new Point();
var myObject = new Point(otherPoint);
var myObject = new Point(x, y);
Create a Point representing the (0;0) point.
var myObject = new Point();
Create a Point representing a copy of otherPoint.
var myObject = new Point(otherPoint);
Create a Point representing the (50;75) point.
var myObject = new Point(50, 75);
Returns a copy of this Point.
myObject.clone();
var copyOfMyObject = myObject.clone();
Returns true if this Point and another are referencing the same point.
myObject.equals(other);
if(myFirstObject.equals(mySecondObject)) //Do something
Returns a string representing this Point.
myObject.toString();
Console.print(myObject.toString());
This method is automatically called when trying to convert a Point to a string.
Sets the x coordinate of this Point.
myObject.setX(x);
Sets the y coordinate of this Point.
myObject.setY(y);
Returns the x coordinate of this Point.
myObject.x(); //if that doesn't work, try without parentheses: myObject.x;
Returns the y coordinate of this Point.
myObject.y(); //if that doesn't work, try without parentheses: myObject.y;
The x coordinate of this Point. (integer)
myObject.x = 50; Console.print(myObject.x);
The y coordinate of this Point. (integer)
myObject.y = 50; Console.print(myObject.y);