public static double CalcDiagonalXZ(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Width, figure.Depth); return(distance); }
public static double CalcDiagonalYZ(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Height, figure.Depth); return(distance); }
public static double CalcDiagonalYZ(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Height, figure.Depth); return distance; }
public static double CalcDiagonalXY(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Width, figure.Height); return(distance); }
public static double CalcDiagonalXY(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Width, figure.Height); return distance; }
public static double CalcDiagonalXZ(IFigure3D figure) { double distance = CalcDistance2D(0, 0, figure.Width, figure.Depth); return distance; }
public static double CalculateDiagonal3D(IFigure3D figure) { double distance = CalculateDistance3D(0, 0, 0, figure.Width, figure.Height, figure.Depth); return(distance); }
public static double CalcVolume(IFigure3D figure) { double volume = figure.Width * figure.Height * figure.Depth; return volume; }
public static Object3D SetMaterial(this IFigure3D figure, IMaterial material) { return(new Object3D(figure, material)); }
public static double CalculateVolume(IFigure3D figure) { double volume = figure.Width * figure.Height * figure.Depth; return(volume); }
public static IFigure3D Intersection(this IFigure3D figure, IFigure3D figure2) { return(new IntersectionOp { Object1 = figure, Object2 = figure2 }); }
public static IFigure3D Substract(this IFigure3D figure, IFigure3D figure2) { return(new SubstractionOp { Object1 = figure, Object2 = figure2 }); }
public static IFigure3D Union(this IFigure3D figure, IFigure3D figure2) { return(new UnionOp { Object1 = figure, Object2 = figure2 }); }
public static IFigure3D RepeatX(this IFigure3D figure, int period) { return(new RepetitionOp { X = period, Object = figure }); }
public Object3D(IFigure3D figure, IMaterial material) { this.Figure = figure; this.Material = material; }