Ejemplo n.º 1
0
        private static void Main()
        {
            Console.WriteLine(GetFile.GetFileExtension("example"));
            Console.WriteLine(GetFile.GetFileExtension("example.pdf"));
            Console.WriteLine(GetFile.GetFileExtension("example.new.pdf"));

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

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

            //     Console.WriteLine("Volume = {0:f2}", Parallelepiped.CalcVolume());
            //     Console.WriteLine("Diagonal XYZ = {0:f2}", Utils.CalcDiagonalXYZ());
            //     Console.WriteLine("Diagonal XY = {0:f2}", Utils.CalcDiagonalXY());
            //     Console.WriteLine("Diagonal XZ = {0:f2}", Utils.CalcDiagonalXZ());
            //     Console.WriteLine("Diagonal YZ = {0:f2}", Utils.CalcDiagonalYZ());
        }
Ejemplo n.º 2
0
        public double CalculateDiagonalXyz()
        {
            double distance = CalcDistance.CalculateDistanceIn3D(0, 0, 0, Width, Height, Depth);

            return(distance);
        }