Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun distance(p1: Point, p2: Point): Double

Distance between two points.

Link copied to clipboard
fun distance2(p1: Point, p2: Point): Double

Squared distance between two points (faster, avoids sqrt).

Link copied to clipboard

Distance between a point and a line segment.

Link copied to clipboard

Squared distance between a point and a line segment (faster, avoids sqrt).