A cocktail glass is typically filled with 130 milliliters of liquid. My cocktail glass has a diameter of 115 millimeters. If I stick a needle in the middle of my filled cocktail glass, the booze would reach a height of 37.55 millimeters (ignoring the volume of the needle completely).
If I take another, identical cocktail glass, but only pour 50 milliliters of liquid in it, how deep would it be this time if I would put a needle in to measure?
Context:
I'm building a cocktail recipe website, and I'd like to make a visualization of the liquids in a cocktail glass. I list the ingredients in various milliliters, and I'd like a 2D cocktail glass to show the layers and their proportionate area in the triangle.
The reason I need to base the calculation on a cone rather than a triangle is because I want to give the visitor the ability to modify the default glass size (different radius, different depth, etc).
I will use the calculated height from the formula to fill a piece of the triangle for each ingredient based on their volume of the recipe.