public static double CalculateCuboidDiagonal(ICuboid cuboid) { double diagonal = Math.Sqrt( Math.Pow(cuboid.Width, 2) + Math.Pow(cuboid.Height, 2) + Math.Pow(cuboid.Depth, 2)); return(diagonal); }
public static double CalculateCuboidDiagonal(ICuboid cuboid) { double diagonal = Math.Sqrt( Math.Pow(cuboid.Width, 2) + Math.Pow(cuboid.Height, 2) + Math.Pow(cuboid.Depth, 2)); return diagonal; }
public static double CalculateCuboidVolume(ICuboid cuboid) { double volume = cuboid.Width * cuboid.Height * cuboid.Depth; return(volume); }
public static double CalculateCuboidVolume(ICuboid cuboid) { double volume = cuboid.Width * cuboid.Height * cuboid.Depth; return volume; }