resqpy.olio.volume.pyramid_volume
- resqpy.olio.volume.pyramid_volume(apex, a, b, c, d, crs_is_right_handed=False)[source]
Returns volume of a quadrilateral pyramid.
- Parameters:
apex (
triple float) – location of the apex of the pyramida (
each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crsb (
each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crsc (
each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crsd (
each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crscrs_is_right_handed (
boolean, defaultFalse) – set True if xyz axes of crs are right handed
- Returns:
float, being the volume of the pyramid; units are implied by crs units in use by the vertices