parry2d::utils

Function ccw_face_normal

Source
pub fn ccw_face_normal(pts: [&Point<f32>; 2]) -> Option<Unit<Vector<f32>>>
Expand description

Computes the direction pointing toward the right-hand-side of an oriented segment.

Returns None if the segment is degenerate.