public static void Main() { Console.WriteLine(GeometryMethods.CalcTriangleArea(3, 4, 5)); double distance = GeometryMethods.CalcDistance(3, -1, 3, 2.5); bool isHorizontalLine = GeometryMethods.IsHorizontalLine(3, -1, 3, 2.5); bool isVerticalLine = GeometryMethods.IsVerticalLine(3, -1, 3, 2.5); Console.WriteLine(distance); Console.WriteLine("Horizontal? " + isHorizontalLine); Console.WriteLine("Vertical? " + isVerticalLine); }
public static void Main() { Console.Write("Triangle area: "); Console.WriteLine(GeometryMethods.CalculateTriangleArea(3, 4, 5)); Console.WriteLine("Distance: "); Console.WriteLine(GeometryMethods.CalculateDistance(3, -1, 3, 2.5)); bool isHorizontalLine = GeometryMethods.IsHorizontalLine(-1, 2.5); Console.WriteLine("Horizontal? " + isHorizontalLine); bool isVerticalLine = GeometryMethods.IsVerticalLine(3, 3); Console.WriteLine("Vertical? " + isVerticalLine); }