SRectIntersection
Calculates the intersection of two SRects.
Synopsis
SRect * SRectIntersection (SRect *dst, SRect *rect1, SRect *rect2)
Description
Calculates the intersection of two rectangles, returning a rectangle that describes the common area. The dst rectangle can be the same as either source rectangle. If there is no common area between the two source rectangles, the function return value is NULL, but the values in *dst are still modified.
Arguments
- dst
- Pointer to an SRect where the results are to be stored.
- rect1
- Pointer to one of the source SRects.
- rect2
- Pointer to the other source SRect.
Return Value
The input parameter dst, or NULL if there is no common area between the source rectangles.
Implementation
Library call implemented in lib3do.lib.
Associated Files
lib3do.lib, celutils.h
See Also
SRectBounds
, CRectIntersection