public void TestLineIntersection() { Console.WriteLine($"======== Line Intersection ========"); Line a = new Line(new Vector2(0, 0), new Vector2(10, 10) - new Vector2(0, 0)); Line b = new Line(new Vector2(10, 0), new Vector2(0, 10) - new Vector2(1, 0)); Geometry2D.Intersection intersection = Geometry2D.GetLineIntersection(a, b); Console.WriteLine($"Is Parallel:{intersection.IsParallel}, Point:{intersection.IntersectPoint}"); Console.WriteLine($"==================================="); }