diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 15:12:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 15:12:31 +0000 |
commit | 2d9e8e7ed9c921121d44b22f06b1d806c2b1f72a (patch) | |
tree | 56571f616b03d473b6a99c640f58b3c5d1cefa2d /nuttx/include | |
parent | ed6a78372c4c7dde448e92d21f74f3defee35fed (diff) | |
download | px4-nuttx-2d9e8e7ed9c921121d44b22f06b1d806c2b1f72a.tar.gz px4-nuttx-2d9e8e7ed9c921121d44b22f06b1d806c2b1f72a.tar.bz2 px4-nuttx-2d9e8e7ed9c921121d44b22f06b1d806c2b1f72a.zip |
Add nxgl_rectunion()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nxglib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nxglib.h b/nuttx/include/nuttx/nxglib.h index 5edd639aa..b34159201 100644 --- a/nuttx/include/nuttx/nxglib.h +++ b/nuttx/include/nuttx/nxglib.h @@ -364,6 +364,19 @@ EXTERN void nxgl_rectintersect(FAR struct nxgl_rect_s *dest, FAR const struct nxgl_rect_s *src2); /**************************************************************************** + * Name: nxgl_rectunion + * + * Description: + * Given two rectanges, src1 and src2, return the larger rectangle that + * contains both, dest. + * + ****************************************************************************/ + +EXTERN void nxgl_rectunion(FAR struct nxgl_rect_s *dest, + FAR const struct nxgl_rect_s *src1, + FAR const struct nxgl_rect_s *src2); + +/**************************************************************************** * Name: nxgl_nonintersecting * * Description: |