class Point

Package :

(default package)

Description :

Simple x,y coordinates.

Methods :

new(x, y)

Creates a new Point object.

Parameters :

clone()

Cloning the current point

Returns :

The cloned Point.

distanceFrom(p2)

Distance from this point to another.

Parameters :

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 :

Returns :

The x distance + the y distance.