You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

cone_volume

Returns the volume of a cone of a given radius and height.

cone_volume(radius,height)
Returns the volume of a cone of a given radius and height.
COPY/// cone_volume(radius,height)
//
//  Returns the volume of a cone of a given radius and height.
//
//      radius      radius of cone, real
//      height      height of cone, real
//
/// GMLscripts.com/license
{
    return (1/3 * pi * argument0 * argument0 * argument1);
}

Contributors: GameGoblin

GitHub: View · Commits · Blame · Raw