class Point
Package :
(default package)
Description :
Simple x,y coordinates.
Methods :
new(x, y)
Creates a new Point object.
Parameters :
- x : The x coordinate (default : 0).
- y : The y coordinate (default : 0).
clone()
Cloning the current point
Returns :
The cloned Point.
distanceFrom(p2)
Distance from this point to another.
Parameters :
- p2 : The distant point.
Returns :
The distance between both points.
simpleDistance(p2)
Simplified distance calculation. This can be used for critic functions when the square root is not needed.
Parameters :
- p2 : The distant point.
Returns :
The x distance + the y distance.