Made addLineSegment use addLineSegmentF