# wn_intersect_c

intersect.i4.v = wn_intersect_c(window_id_1.i4.v, window_id_2.i4.v
[,x1.i4.r] [,y1.i4.r]
[,x2.i4.r] [,y2.i4.r])
This routine returns a value of TRUE if the windows indicated
intersect. It will also optionally return the intersecting
rectangle in full screen coordinates.
window_id_1 ID of first window
window_id_2 ID of second window
[x1, y1] returned upper left corner of the intersection
rectangle
[x2, y2] returned lower right corner of the intersection
rectangle
This function returns status values as follows:
TRUE the two windows intersect
FALSE the two windows are tiled
This function requires the following include files:
cnsparam_h, cbslib_h
Related functions:
wn_occluded_c, intro_graphics_windows
C/C++ usage:
int intersect;
int window_id_1;
int window_id_2;
int x1;
int y1;
int x2;
int y2;
intersect = wn_intersect_c(window_id_1,window_id_2,&x1,&y1,&x2,&y2);