diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 18:51:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 18:51:48 +0000 |
commit | bcdec2b7f93ef0e4ad736ca4181e5d0762540ddc (patch) | |
tree | 69d20c1d60d4ae8fb94b2009f080931fe7a78a83 /nuttx/graphics/nxglib | |
parent | ddbd1c4ca59bc9adb8807abc4b1b78b2767dfbdb (diff) | |
download | px4-nuttx-bcdec2b7f93ef0e4ad736ca4181e5d0762540ddc.tar.gz px4-nuttx-bcdec2b7f93ef0e4ad736ca4181e5d0762540ddc.tar.bz2 px4-nuttx-bcdec2b7f93ef0e4ad736ca4181e5d0762540ddc.zip |
Add rectinside(), vectsubtract(), visible()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib')
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_rectinside.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_vectsubtract.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_rectinside.c b/nuttx/graphics/nxglib/nxglib_rectinside.c index 5d631d533..aa09eb2d7 100644 --- a/nuttx/graphics/nxglib/nxglib_rectinside.c +++ b/nuttx/graphics/nxglib/nxglib_rectinside.c @@ -79,5 +79,5 @@ boolean nxgl_rectinside(FAR const struct nxgl_rect_s *rect, FAR const struct nxgl_point_s *pt) { return (pt->x >= rect->pt1.x && pt->x <= rect->pt2.x && - pt->x >= rect->pt1.y && pt->y <= rect->pt2.y); + pt->y >= rect->pt1.y && pt->y <= rect->pt2.y); } diff --git a/nuttx/graphics/nxglib/nxglib_vectsubtract.c b/nuttx/graphics/nxglib/nxglib_vectsubtract.c index 03b7ddc41..22ebcaa61 100644 --- a/nuttx/graphics/nxglib/nxglib_vectsubtract.c +++ b/nuttx/graphics/nxglib/nxglib_vectsubtract.c @@ -68,16 +68,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: nxgl_vectorsubtract + * Name: nxgl_vectsubtract * * Description: * Add subtract vector v2 from vector v1 and return the result in vector dest * ****************************************************************************/ -void nxgl_vectorsubtract(FAR struct nxgl_point_s *dest, - FAR const struct nxgl_point_s *v1, - FAR const struct nxgl_point_s *v2) +void nxgl_vectsubtract(FAR struct nxgl_point_s *dest, + FAR const struct nxgl_point_s *v1, + FAR const struct nxgl_point_s *v2) { dest->x = v1->x - v2->x; dest->y = v1->y - v2->y; |