quad_normal

Function quad_normal 

Source
pub fn quad_normal<T>(
    v0: &Vector3<T>,
    v1: &Vector3<T>,
    v2: &Vector3<T>,
    v3: &Vector3<T>,
) -> Vector3<T>
where T: FloatScalar,
Expand description

Computes the normal vector of a quadrilateral.

Uses the cross product of the two diagonals for a more stable result.