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 pyramid

  • a (each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crs

  • b (each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crs

  • c (each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crs

  • d (each triple float) – locations of corners of base of pyramid; clockwise viewed from apex for a left handed crs

  • crs_is_right_handed (boolean, default False) – 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