Formula For Ratios Of Directed Line Segments