aboutsummaryrefslogtreecommitdiff
path: root/umath/intersect.c
blob: 582c8515b37d05dd7d36e42b7f81dfc659e2dc1e (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;
}