static void Main(string[] args)
        {
            Circle circle             = new Circle();
            DistanceCalculator2D dist = new DistanceCalculator2D();
            Elipse    elipse          = new Elipse();
            Figure2D  figure          = new Figure2D();
            Point2D   point           = new Point2D();
            Polygon   plygon          = new Polygon();
            Rectangle rectangle       = new Rectangle();
            Square    square          = new Square();

            Console.WriteLine();

            Point3D point3D             = new Point3D();
            Path3D  path                = new Path3D();
            DistanceCalculator3D dist3D = new DistanceCalculator3D();

            Console.WriteLine();

            GeometryBinaryStorage gbStorage = new GeometryBinaryStorage();
            GeometrySVGStorage    gsStorage = new GeometrySVGStorage();
            GeometryXMLStorage    gxStorage = new GeometryXMLStorage();

            Console.WriteLine();

            Screen2D sc2D = new Screen2D();
            Screen3D sc3D = new Screen3D();
        }
예제 #2
0
파일: Program.cs 프로젝트: Vakuu/CSharp
        static void Main(string[] args)
        {
            Point3D firstPoint  = new Point3D(2, 3.4, 8);
            Point3D secondPoint = new Point3D(4.4, 25, 1);
            Point3D thirdPoint  = new Point3D(3.3, 3.4, 5.5);

            double distanceBetweenTwoPoints = DistanceCalculator3D.CalculateDistanceIn3D(firstPoint, secondPoint);

            Console.WriteLine("The distance between the points in Euclid 3d space is : " + distanceBetweenTwoPoints);

            List <Point3D> pointsList = new List <Point3D>();

            pointsList.Add(firstPoint);
            pointsList.Add(secondPoint);
            pointsList.Add(thirdPoint);

            Path3D pathToSave = new Path3D(pointsList);

            string operationResult = Storage.Save3dPoints(pathToSave);

            Console.WriteLine(operationResult);

            Path3D pathToLoad = Storage.Load3dPoints();

            List <Point3D> loadedPoints = new List <Point3D>();

            loadedPoints = pathToLoad.SequenceOfPoints;

            foreach (Point3D currentPoint in loadedPoints)
            {
                Console.WriteLine(currentPoint);
            }
        }
예제 #3
0
 static void Main(string[] args)
 {
     Point3D            point   = new Point3D();
     Circle             circle  = new Circle();
     Polygon            polygon = new Polygon();
     Path3D             path    = new Path3D();
     GeometryXMLStorage xml     = new GeometryXMLStorage();
 }
예제 #4
0
 static void Main()
 {
     Point2D               a = new Point2D();
     Figure2D              b = new Figure2D();
     Square                c = new Square();
     Rectangle             d = new Rectangle();
     Circle                e = new Circle();
     Elipse                f = new Elipse();
     DistanceCalculator2D  g = new DistanceCalculator2D();
     Point3D               h = new Point3D();
     Path3D                i = new Path3D();
     DistanceCalculator3D  j = new DistanceCalculator3D();
     GeometryBinaryStorage k = new GeometryBinaryStorage();
     GeometrySVGStorage    l = new GeometrySVGStorage();
     GeometryXMLStorage    m = new GeometryXMLStorage();
     Screen2D              n = new Screen2D();
     Screen3D              o = new Screen3D();
 }
예제 #5
0
        static void Main()
        {
            Circle  circle                = new Circle();
            Ellipse ellipse               = new Ellipse();
            DistanceCalculator2D calc2D   = new DistanceCalculator2D();
            Figure2D             figure2D = new Figure2D();
            Point2D   p2D     = new Point2D();
            Polygon   polygon = new Polygon();
            Rectangle rect    = new Rectangle();
            Square    square  = new Square();

            Console.WriteLine();

            DistanceCalculator3D calc3D = new DistanceCalculator3D();
            Path3D  path = new Path3D();
            Point3D p3D  = new Point3D();

            GeometrySVGStorage    geometrySVGStorage    = new GeometrySVGStorage();
            GeometryXMLStorage    geometryXMLStorage    = new GeometryXMLStorage();
            GeometryBinaryStorage geometryBinaryStorage = new GeometryBinaryStorage();

            Screen2D scr2D = new Screen2D();
            Screen3D scr3D = new Screen3D();
        }