Function veloren_common_systems::phys::closest_points
source ยท fn closest_points(
n: LineSegment2<f32>,
m: LineSegment2<f32>,
) -> (Vec2<f32>, Vec2<f32>)
Expand description
Returns the points on line segments n and m respectively that are the closest to one-another. If the lines are parallel, an arbitrary, unspecified pair of points that sit on the line segments will be chosen.