|
|
|
|
MGL_sectRect
Compute the intersection between two rectangles.
Declaration
ibool MGLAPI MGL_sectRect(
rect_t r1,
rect_t r2,
rect_t *d)
Prototype In
mgraph.h
Parameters
r1 |
First rectangle to intersect |
r2 |
Second rectangle to intersect |
d |
Place to store the resulting intersection |
Return Value
True if the rectangles intersect, false if not.
Description
Computes the intersection of two rectangles, and returns the result in a third. If the rectangles actually intersect (the intersection is not an empty rectangle) then this function returns true, otherwise it will return false.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com