* @author Dennis Eichhorn * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://orange-management.com */ declare(strict_types=1); namespace phpOMS\Math\Shape\D3; /** * Tetraedron shape. * * @category Framework * @package phpOMS\DataStorage\Database * @author OMS Development Team * @author Dennis Eichhorn * @license OMS License 1.0 * @link http://orange-management.com * @since 1.0.0 */ class Tetrahedron implements D3ShapeInterface { /** * Volume * * @param float $a Edge * * @return float * * @since 1.0.0 * @author Dennis Eichhorn */ public static function getVolume(float $a) : float { return $a ** 3 / (6 * sqrt(2)); } /** * Surface area * * @param float $a Edge * * @return float * * @since 1.0.0 * @author Dennis Eichhorn */ public static function getSurface(float $a) : float { return sqrt(3) * $a ** 2; } /** * Lateral surface area * * @param float $a Edge * * @return float * * @since 1.0.0 * @author Dennis Eichhorn */ public static function getFaceArea(float $a) : float { return sqrt(3) / 4 * $a ** 2; } }