Segment
domain contains utility methods for segment calculation