Line Division and Coordinate Calculation