Jump to content

Talk:Cohen–Sutherland algorithm

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lyberta (talk | contribs) at 12:09, 29 July 2011 (Implementation: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

what is outcode is the point is on the line x=xmin or x=xmax or y=ymin or y=ymaz ? please help me

Implementation

if (!(outcode0 | outcode1)) { // Bitwise OR is 0. Trivially accept and get out of loop

Wouldn't logical OR be faster and more intuitive here? FaTony (talk) 12:09, 29 July 2011 (UTC)[reply]