示例#1
0
        public static double CalcDiagonalXZ(IFigure3D figure)
        {
            double distance = CalcDistance2D(0, 0, figure.Width, figure.Depth);

            return(distance);
        }
示例#2
0
        public static double CalcDiagonalYZ(IFigure3D figure)
        {
            double distance = CalcDistance2D(0, 0, figure.Height, figure.Depth);

            return(distance);
        }
示例#3
0
 public static double CalcDiagonalYZ(IFigure3D figure)
 {
     double distance = CalcDistance2D(0, 0, figure.Height, figure.Depth);
     return distance;
 }
示例#4
0
        public static double CalcDiagonalXY(IFigure3D figure)
        {
            double distance = CalcDistance2D(0, 0, figure.Width, figure.Height);

            return(distance);
        }
示例#5
0
 public static double CalcDiagonalXY(IFigure3D figure)
 {
     double distance = CalcDistance2D(0, 0, figure.Width, figure.Height);
     return distance;
 }
示例#6
0
 public static double CalcDiagonalXZ(IFigure3D figure)
 {
     double distance = CalcDistance2D(0, 0, figure.Width, figure.Depth);
     return distance;
 }
示例#7
0
        public static double CalculateDiagonal3D(IFigure3D figure)
        {
            double distance = CalculateDistance3D(0, 0, 0, figure.Width, figure.Height, figure.Depth);

            return(distance);
        }
示例#8
0
 public static double CalcVolume(IFigure3D figure)
 {
     double volume = figure.Width * figure.Height * figure.Depth;
     return volume;
 }
示例#9
0
 public static Object3D SetMaterial(this IFigure3D figure, IMaterial material)
 {
     return(new Object3D(figure, material));
 }
示例#10
0
        public static double CalculateVolume(IFigure3D figure)
        {
            double volume = figure.Width * figure.Height * figure.Depth;

            return(volume);
        }
示例#11
0
 public static IFigure3D Intersection(this IFigure3D figure, IFigure3D figure2)
 {
     return(new IntersectionOp {
         Object1 = figure, Object2 = figure2
     });
 }
示例#12
0
 public static IFigure3D Substract(this IFigure3D figure, IFigure3D figure2)
 {
     return(new SubstractionOp {
         Object1 = figure, Object2 = figure2
     });
 }
示例#13
0
 public static IFigure3D Union(this IFigure3D figure, IFigure3D figure2)
 {
     return(new UnionOp {
         Object1 = figure, Object2 = figure2
     });
 }
示例#14
0
 public static IFigure3D RepeatX(this IFigure3D figure, int period)
 {
     return(new RepetitionOp {
         X = period, Object = figure
     });
 }
示例#15
0
 public Object3D(IFigure3D figure, IMaterial material)
 {
     this.Figure   = figure;
     this.Material = material;
 }