Content deleted Content added
No edit summary |
The if condition that checks if the line is parallel to the clipping window was incomplete. The correct condition is "if((p1==0 && q1 < 0) || (p3 ==0 && q3 < 0))" to check if the line is parallel AND outside the clipping window. |
||
Line 85:
rectangle(xmin,467 - ymin,xmax,467 - ymax); // drawing the clipping window!
if((p1==0 && q1 < 0) || (p3 ==0 && q3 < 0))
{
outtextxy(80,80,"Line is Parallel to clipping window!");
|