Skip to main content

closest_point_on_segment

Function closest_point_on_segment 

Source
pub fn closest_point_on_segment(
    a: impl Into<Vec3>,
    b: impl Into<Vec3>,
    q: impl Into<Vec3>,
) -> Result<Vec3>
Expand description

Returns the closest point on segment a-b to query point q.