Measuring ratio of two lines