Companion

object Companion

Functions

Link copied to clipboard
fun distance(x1: double, y1: double, x2: double, y2: double): double

Returns the distance between two points.

Link copied to clipboard
fun distanceSq(x1: double, y1: double, x2: double, y2: double): double

Returns the square of the distance between two points.