distanceTo

open fun distanceTo(point: P): Double(source)

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


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

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