Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)