aboutsummaryrefslogtreecommitdiff
path: root/umath/intersect.c
blob: 2d213895348f992a6588938ff4edd74985d10a8f (plain)
1
2
3
4
5
6
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;
}