Directed Line Segment Formula