ncollide3d::utils

Function tetrahedron_signed_volume

Source
pub fn tetrahedron_signed_volume<N: RealField + Copy>(
    p1: &Point<N>,
    p2: &Point<N>,
    p3: &Point<N>,
    p4: &Point<N>,
) -> N
Expand description

Computes the signed volume of a tetrahedron.

If it is positive, p4 is on the half-space pointed by the normal of the oriented triangle (p1, p2, p3).