segment(p,q)
i1 : p=point(2.1, 3.) o1 = Point2D{2, 3} o1 : Point2D
i2 : q=point(.4, 4.6) o2 = Point2D{0, 5} o2 : Point2D
i3 : segment(p,q) o3 = Segment2D{Point2D{2, 3}, Point2D{0, 5}} o3 : Segment2D