Go to the source code of this file.
Enumerations | |
| enum | ClipResult { NotClipped, WasClipped } | 
Functions | |
| ClipResult | cohen_sutherland_line_clip_d (double *x0, double *y0, double *x1, double *y1, double xmin_, double xmax_, double ymin_, double ymax_) | 
| ClipResult | cohen_sutherland_line_clip_i (int *x0, int *y0, int *x1, int *y1, int xmin_, int xmax_, int ymin_, int ymax_) | 
      
  | 
  
| 
 ClipResult: Result of cohen_sutherland_line_clip_d().  | 
  
      
  | 
  ||||||||||||||||||||||||||||||||||||
| 
 cohen_sutherland_line_clip_d: : x coordinate of first point. : y coordinate of first point. : x coordinate of second point. : y coordinate of second point. : x coordinate of lower left edge of clipping rectangle. : y coordinate of lower left edge of clipping rectangle. : x coordinate of upper right edge of clipping rectangle. : y coordinate of lower left edge of clipping rectangle. cohen_sutherland_line_clip_d() will clip a line from first point (, ) to (, ) so that it fits into the given min/max bounds of the rectange (, ) - (, ). The line input coordinates will be modified if necessary for clipping. Returns: ClipResult.  | 
  
      
  | 
  ||||||||||||||||||||||||||||||||||||
| 
 
  | 
  
 1.4.6