(radius, height)
| 63 | return PI * radius^2 * height |
| 64 | */ |
| 65 | const volCylinder = (radius, height) => { |
| 66 | isNumber(radius, 'Radius') |
| 67 | isNumber(height, 'Height') |
| 68 | return Math.PI * radius ** 2 * height |
| 69 | } |
| 70 | |
| 71 | /* |
| 72 | Calculate the volume for a Triangular Prism |
nothing calls this directly
no test coverage detected