aboutsummaryrefslogtreecommitdiff
path: root/umath/intersect.c
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-18 14:14:23 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-18 14:14:23 +0100
commit5f0fce4191309e9526b7109a0d87c092ce6a4193 (patch)
tree105257f876551814aa74a0760ec116bd1bf307a5 /umath/intersect.c
parentead78d51e662057467b79d3a65b20c4ba83cbf07 (diff)
main
Diffstat (limited to 'umath/intersect.c')
-rw-r--r--umath/intersect.c7
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