distance

fun distance(px: double, py: double): Double

Returns the distance from this Point2D to a specified point.

Return

the distance between this Point2D and a specified point.

Since

1.2

Parameters

px

the X coordinate of the specified point to be measured against this Point2D

py

the Y coordinate of the specified point to be measured against this Point2D