(C) 1998 AROS - The Amiga Research OS
NAME
#include <proto/graphics.h>
BOOL AndRegionRegion (region1 , region2)
LOCATION
In GfxBase at offset 104
SYNOPSIS
struct Region * region1
struct Region * region2
FUNCTION
AND of one region with another region, leaving result in second region.
INPUTS
region1 - pointer to a region structure region2 - pointer to a region structure
RESULT
TRUE if the operation was succesful, else FALSE (out of memory)
EXAMPLE
SEE ALSO
XorRegionRegion(), OrRegionRegion()
NOTES
BUGS
INTERNALS
Two regions A and B consist of rectangles a1,...,a3 and b1,...,b3. A = a1 + a2 + a3; B = b1 + b2 + b3; A * B = (a1 + a2 + a3) * (b1 + b2 + b3) = a1 * (b1 + b2 + b3) + a2 * (b1 + b2 + b3) + a3 * (b1 + b2 + b3);
HISTORY
01.02.1999 bergers
Bugfixes. This should do it.
27.01.1999 bergers
This should be the correct implementation. The first one i committed was not worth anything...
02.12.1998 bergers
Init. revision.