(radius)
| 98 | return 4/3 * PI * radius^3 |
| 99 | */ |
| 100 | const volSphere = (radius) => { |
| 101 | isNumber(radius, 'Radius') |
| 102 | return (4 / 3) * Math.PI * radius ** 3 |
| 103 | } |
| 104 | |
| 105 | /* |
| 106 | Calculate the volume for a Hemisphere |
nothing calls this directly
no test coverage detected