| |
| | [No title] (Site not responding. Last check: 2007-10-26) |
 | | int point_code (float x, float y, float xmn, float ymn, float xmx, float ymx); void swap (int &a, int &b); void swap (float &a, float &b); #define TRUE 1 #define FALSE 0 /*----------------------------------------------------------------------- ROUTINE: line_clip PURPOSE: To clip a line segment against a rectangular window. |
 | | GLOBAL: x1, y1, float endpoints of line segment to be clipped. |
 | | ymx) ic+=8; return ic; } void swap (int &a, int &b) { int temp; temp = a; a = b; b = temp; return; } void swap (float &a, float &b) { float temp; temp = a; a = b; b = temp; return; } |
| www-personal.umich.edu /~turner/Arch541/ln2clip.c (460 words) |
|