summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-01 15:28:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-01 15:28:31 +0000
commitdb3c14627515ed025cfbe5d2ef70784b995ac5ba (patch)
tree2533306ae39676f8612da98b1d35dad9394ff904 /nuttx/include
parentb9cd0d6d5f21cac0ee3a8b3c561ce921d18dd686 (diff)
downloadpx4-nuttx-db3c14627515ed025cfbe5d2ef70784b995ac5ba.tar.gz
px4-nuttx-db3c14627515ed025cfbe5d2ef70784b995ac5ba.tar.bz2
px4-nuttx-db3c14627515ed025cfbe5d2ef70784b995ac5ba.zip
Add vectsubtract() and rectinside()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1371 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/nxglib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nxglib.h b/nuttx/include/nuttx/nxglib.h
index b34159201..1f230e0d2 100644
--- a/nuttx/include/nuttx/nxglib.h
+++ b/nuttx/include/nuttx/nxglib.h
@@ -352,6 +352,18 @@ EXTERN void nxgl_vectoradd(FAR struct nxgl_point_s *dest,
FAR const struct nxgl_point_s *v2);
/****************************************************************************
+ * Name: nxgl_vectorsubtract
+ *
+ * Description:
+ * Add subtract vector v2 from vector v1 and return the result in vector dest
+ *
+ ****************************************************************************/
+
+EXTERN void nxgl_vectorsubtract(FAR struct nxgl_point_s *dest,
+ FAR const struct nxgl_point_s *v1,
+ FAR const struct nxgl_point_s *v2);
+
+/****************************************************************************
* Name: nxgl_rectintersect
*
* Description:
@@ -402,6 +414,17 @@ EXTERN boolean nxgl_rectoverlap(FAR struct nxgl_rect_s *rect1,
FAR struct nxgl_rect_s *rect2);
/****************************************************************************
+ * Name: nxgl_rectinside
+ *
+ * Description:
+ * Return TRUE if the point pt lies within rect.
+ *
+ ****************************************************************************/
+
+EXTERN boolean nxgl_rectinside(FAR const struct nxgl_rect_s *rect,
+ FAR const struct nxgl_point_s *pt);
+
+/****************************************************************************
* Name: nxgl_nullrect
*
* Description: