diff options
Diffstat (limited to 'umath/intersect.c')
-rw-r--r-- | umath/intersect.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/umath/intersect.c b/umath/intersect.c new file mode 100644 index 0000000..2d21389 --- /dev/null +++ b/umath/intersect.c @@ -0,0 +1,7 @@ +#include <intersect.h> + +int pt_rect (float p[], float a[], float b[]) { + if (p[0]>a[0] && p[0]<a[0]+b[0] && p[1]>a[1] && p[1]<a[1]+b[1]) + return 1; + return 0; +}
\ No newline at end of file |