Skip to main content

dihedral_angle

Function dihedral_angle 

Source
pub fn dihedral_angle(
    v0: [f64; 3],
    v1: [f64; 3],
    v2: [f64; 3],
    v3: [f64; 3],
) -> f64
Expand description

Compute the dihedral angle (in radians) between two triangles sharing edge (v1, v2).

v0 and v3 are the “wing” vertices of each triangle respectively. Returns a value in [0, π].