public static void Main() { Console.WriteLine(FileUtils.GetFileExtension("example")); Console.WriteLine(FileUtils.GetFileExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileExtension("example.new.pdf")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.new.pdf")); Console.WriteLine("Distance in the 2D space = {0:f2}", MathUtils.CalcDistance2D(1, -2, 3, 4)); Console.WriteLine("Distance in the 3D space = {0:f2}", MathUtils.CalcDistance3D(5, 2, -1, 3, -6, 4)); Console.WriteLine("Volume = {0:f2}", FigureUtils.CalcVolume(3, 4, 5)); Console.WriteLine("Diagonal XYZ = {0:f2}", FigureUtils.CalcDiagonalXYZ(3, 4, 5)); Console.WriteLine("Diagonal XY = {0:f2}", FigureUtils.CalcDiagonalXY(3, 4)); Console.WriteLine("Diagonal XZ = {0:f2}", FigureUtils.CalcDiagonalXZ(3, 5)); Console.WriteLine("Diagonal YZ = {0:f2}", FigureUtils.CalcDiagonalYZ(4, 5)); }
public static void Main() { Console.WriteLine(FileUtils.GetFileExtension("example")); Console.WriteLine(FileUtils.GetFileExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileExtension("example.new.pdf")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.new.pdf")); Console.WriteLine("Distance in the 2D space = {0:f2}", DistanceUtils.CalcDistance2D(1, -2, 3, 4)); Console.WriteLine("Distance in the 3D space = {0:f2}", DistanceUtils.CalcDistance3D(5, 2, -1, 3, -6, 4)); FigureUtils figure = new FigureUtils(3, 4, 5); Console.WriteLine("Volume = {0:f2}", figure.CalcVolume()); Console.WriteLine("Diagonal XYZ = {0:f2}", figure.CalcDiagonalXYZ()); Console.WriteLine("Diagonal XY = {0:f2}", figure.CalcDiagonalXY()); Console.WriteLine("Diagonal XZ = {0:f2}", figure.CalcDiagonalXZ()); Console.WriteLine("Diagonal YZ = {0:f2}", figure.CalcDiagonalYZ()); }
static void Main() { //Console.WriteLine(FileUtils.GetFileExtension("example")); Console.WriteLine(FileUtils.GetFileExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileExtension("example.new.pdf")); //Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.pdf")); Console.WriteLine(FileUtils.GetFileNameWithoutExtension("example.new.pdf")); Console.WriteLine("Distance in the 2D space = {0:f2}", PointUtils.CalcDistance2D(1, -2, 3, 4)); Console.WriteLine("Distance in the 3D space = {0:f2}", PointUtils.CalcDistance3D(5, 2, -1, 3, -6, 4)); FigureUtils figure = new FigureUtils(3, 4, 5); Console.WriteLine("Volume = {0:f2}", figure.CalcVolume()); Console.WriteLine("Diagonal XYZ = {0:f2}", figure.CalcDiagonalXYZ()); Console.WriteLine("Diagonal XY = {0:f2}", figure.CalcDiagonalXY()); Console.WriteLine("Diagonal XZ = {0:f2}", figure.CalcDiagonalXZ()); Console.WriteLine("Diagonal YZ = {0:f2}", figure.CalcDiagonalYZ()); }