Skip to main content

faces_same_direction

Function faces_same_direction 

Source
pub fn faces_same_direction(polygon: &Polygon, plane: &Plane3D) -> bool
Expand description

Determines if a polygon faces the same direction as a plane.

Compares the polygon’s normal to the plane’s normal using the dot product. Returns true if the normals point in roughly the same direction (dot > 0).

§Panics

Panics if the polygon has a degenerate (zero-length) normal.