in Cohen–Sutherland algorithm if p1 is in bottom and p2 is in right then the logical and operation between
right=0001, bottom=0100 is 0000 which says the line is inside the clip window when its actually not enter image description here
its fine if the points where like this enter image description here
what about the above case it’s saying its inside but its completely outside
New contributor
Abhishek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.