Finding The Distance Of A Segment