Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 8

PhRectUnion()

Determine a bounding box for two rectangles

Synopsis:

int PhRectUnion( PhRect_t *rect1, 
                 PhRect_t const *rect2 );

Library:

ph

Description:

This function changes the rectangle pointed to by rect1 to a rectangle that encompasses rect2 using rect1 as a starting point. The result is a bounding box for the two original rectangles.

Returns:

0
The resulting rectangle is inverted (only possible if inverted rectangles are provided as parameters i.e. ul > lr ).
1
The resulting rectangle is a regular rectangle (i.e. ul < lr).

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhRect_t, PhRectIntersect()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 100

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phrectunion.html on line 100