Function de_pathing::geometry::which_side
source · pub(crate) fn which_side(
eye: Point<f32>,
old: Point<f32>,
new: Point<f32>
) -> Side
Expand description
Returns the side at which point new
appears relative to point old
from
the perspective of eye
.
Returns Side::Straight
if eye
lies on line segment with end points
old
and new
.
§Panics
May panic if eye
coincides with old
.