Esempio n. 1
0
        private static void Main()
        {
            Console.WriteLine(FileNameGetter.GetFileExtension("example"));
            Console.WriteLine(FileNameGetter.GetFileExtension("example.pdf"));
            Console.WriteLine(FileNameGetter.GetFileExtension("example.new.pdf"));

            Console.WriteLine(FileNameGetter.GetFileNameWithoutExtension("example"));
            Console.WriteLine(FileNameGetter.GetFileNameWithoutExtension("example.pdf"));
            Console.WriteLine(FileNameGetter.GetFileNameWithoutExtension("example.new.pdf"));

            Console.WriteLine("Distance in the 2D space = {0:f2}", PointLocator.CalcDistance2D(1, -2, 3, 4));
            Console.WriteLine("Distance in the 3D space = {0:f2}", PointLocator.CalcDistance3D(5, 2, -1, 3, -6, 4));

            DistanceCalculator pointsToCalculate = new DistanceCalculator(3, 4, 5);

            Console.WriteLine("Volume = {0:f2}", pointsToCalculate.CalcVolume());
            Console.WriteLine("Diagonal XYZ = {0:f2}", pointsToCalculate.CalcDiagonalXYZ());
            Console.WriteLine("Diagonal XY = {0:f2}", pointsToCalculate.CalcDiagonalXY());
            Console.WriteLine("Diagonal XZ = {0:f2}", pointsToCalculate.CalcDiagonalXZ());
            Console.WriteLine("Diagonal YZ = {0:f2}", pointsToCalculate.CalcDiagonalYZ());
        }
Esempio n. 2
0
        public double CalcDiagonalYZ()
        {
            double distance = PointLocator.CalcDistance2D(0, 0, Height, Depth);

            return(distance);
        }
Esempio n. 3
0
        public double CalcDiagonalXZ()
        {
            double distance = PointLocator.CalcDistance2D(0, 0, Width, Depth);

            return(distance);
        }
Esempio n. 4
0
        public double CalcDiagonalXY()
        {
            double distance = PointLocator.CalcDistance2D(0, 0, Width, Height);

            return(distance);
        }