Exemple #1
0
        public static double CalculateDiagonal3D(I3DFigure figure)
        {
            double distance = CalculateDistance3D(0, 0, 0, figure.Width, figure.Height, figure.Depth);

            return(distance);
        }
Exemple #2
0
        public static double CalculateVolume(I3DFigure figure)
        {
            double volume = figure.Width * figure.Height * figure.Depth;

            return(volume);
        }