Segment: originAt, endAt and getOtherEndpoint