line segment and their representation