resqpy.olio.volume.tetrahedron_volume
- resqpy.olio.volume.tetrahedron_volume(a, b, c, d)[source]
Returns volume of a tetrahedron.
- Parameters:
a (
each triple float) – locations of corners of tetrahedronb (
each triple float) – locations of corners of tetrahedronc (
each triple float) – locations of corners of tetrahedrond (
each triple float) – locations of corners of tetrahedroncrs_is_right_handed (
boolean, defaultFalse) – set True if xyz axes of crs are right handed
- Returns:
float, being the volume of the tetrahedron; units are implied by crs units in use by the vertices