Constructs a Line2D object from a given LineSegment.
Line2D
LineSegment
Creates a line in 2D space defined by two points.