ticket #29: Port of new primitives class LineSegment.