Home » Computer Graphics | Point Clipping

Computer Graphics | Point Clipping

by Online Tutorials Library

Point Clipping:

Point Clipping is used to determining, whether the point is inside the window or not. For this following conditions are checked.

  1. x ≤ xmax
  2. x ≥ xmin
  3. y ≤ ymax
  4. y ≥ ymin

Point Clipping

The (x, y) is coordinate of the point. If anyone from the above inequalities is false, then the point will fall outside the window and will not be considered to be visible.

Program1:

To implement Point Clipping:

Output:

Point Clipping
Point Clipping

Program2:

To implement point clipping with respect to rectangular window:

Output:

Point Clipping
Point Clipping
Point Clipping


Next TopicLine Clipping

You may also like