Function veloren_voxygen::scene::math::clip_test
source · pub fn clip_test<T: Float + Debug>(
p: T,
q: T,
(u1, u2): (T, T),
) -> Option<(T, T)>
Expand description
Return value is ‘Some(segment)’ if line segment intersects the current test plane. Otherwise ‘None’ is returned in which case the line segment is entirely clipped.