Liang–Barsky algorithm: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 15:
where
 
:<math>p_1 = -\Delta x , q_1 = x_0 - x_{\text{min}}\,\!</math> (left)
:<math>p_2 = \Delta x , q_2 = x_{\text{max}} - x_0\,\!</math> (right)
:<math>p_3 = -\Delta y , q_3 = y_0 - y_\text{min}\,\!</math> (bottom)
:<math>p_4 = \Delta y , q_4 = y_\text{max} - y_0\,\!</math> (top)
 
To compute the final line segment: