distanceTo

open fun distanceTo(point: P): Double

Computes the shortest distance between the segment and the given point.


open fun distanceTo(other: Segment2D<P>): Double

Computes the shortest distance between two segments (= the shortest distance between any two of their points).