Class: Point2d

Utils.Point2d

new Utils.Point2d (_x0, _y0)

Point2d
Name Type Description
_x0 Number the x coordinate
_y0 Number the y coordinate

Methods

distanceTo (other)Number

distance to another point
Name Type Description
other Utils.Point2d point to measure distance to
Returns:
Type Description
Number the distance between the points

getX ()Number

gets x position
Returns:
Type Description
Number current x position of point

getY ()Number

gets y position
Returns:
Type Description
Number current y position of point

setX (x)

sets x position
Name Type Description
x Number new x position

setY (y)

sets y position
Name Type Description
y Number new y position