Clipping
Cohen-Sutherland Outcodes
Encode which side of a clipping rectangle each segment endpoint lies on.
cohen-sutherland-outcodes
An outcode records top, bottom, right, and left tests as bits, making trivial accept, trivial reject, and clipping cases structural.