Distance and Length of Segment