Segment Distance Result
data class SegmentDistanceResult(val closest1: Vec2, val closest2: Vec2, val fraction1: Float, val fraction2: Float, val distanceSquared: Float)
Result of a segment-to-segment distance query.
Parameters
closest1
The closest point on the first segment
closest2
The closest point on the second segment
fraction1
The barycentric coordinate on the first segment
fraction2
The barycentric coordinate on the second segment
distance Squared
The squared distance between the closest points