(baseLength, baseWidth, height)
| 51 | return (baseLength * baseWidth * height) / 3 |
| 52 | */ |
| 53 | const volPyramid = (baseLength, baseWidth, height) => { |
| 54 | isNumber(baseLength, 'BaseLength') |
| 55 | isNumber(baseWidth, 'BaseWidth') |
| 56 | isNumber(height, 'Height') |
| 57 | return (baseLength * baseWidth * height) / 3.0 |
| 58 | } |
| 59 | |
| 60 | /* |
| 61 | Calculate the volume for a Cylinder |
nothing calls this directly
no test coverage detected