示例#1
0
 public static double CylinderVolume(Cylinder cyl)
 {
     return(Math.PI * Math.Pow(cyl.radius, 2) * cyl.heigth);
 }
示例#2
0
 public static double CylinderVolume(Cylinder shape)
 {
     return(shape.radius * shape.radius * shape.height * Math.PI);
 }
示例#3
0
 public static double CalculateVolume(Cylinder cylinder)
 {
     return Math.PI * (cylinder.Radius * cylinder.Radius) * cylinder.Height;
 }