Content deleted Content added
m change source to syntaxhighlight |
Corrected misstatement of the computation steps. |
||
Line 27:
# If for that <math>i</math>, <math>q_i < 0</math>, then the line is completely outside and can be eliminated.
# When <math>p_i < 0</math>, the line proceeds outside to inside the clip window, and when <math>p_i > 0</math>, the line proceeds inside to outside.
# For nonzero <math>p_i</math>, <math>u = q_i / p_i</math> gives the intersection point of the line and the window edge (possibly projected).
#
# If <math>u_1 > u_2</math>, the line is entirely outside <syntaxhighlight lang="c++">
|