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

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

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

            Dimension.Width  = 3;
            Dimension.Height = 4;
            Dimension.Depth  = 5;
            Console.WriteLine("Volume = {0:f2}", Dimension.CalcVolume());
            Console.WriteLine("Diagonal XYZ = {0:f2}", Dimension.CalcDiagonalXYZ());
            Console.WriteLine("Diagonal XY = {0:f2}", Dimension.CalcDiagonalXY());
            Console.WriteLine("Diagonal XZ = {0:f2}", Dimension.CalcDiagonalXZ());
            Console.WriteLine("Diagonal YZ = {0:f2}", Dimension.CalcDiagonalYZ());
        }