Segment Distance Result
constructor(closest1: Vec2, closest2: Vec2, fraction1: Float, fraction2: Float, distanceSquared: Float)
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