

#ifndef _coll
#define _coll

#include "vector.h"

struct stBox{
    float x,
          y,
          w,
          h;
};

typedef struct stBox box;

int cvinsideBox(vector pos, box wall);
int cvoutsideBoxV(vector pos, box wall);
int cvoutsideBoxH(vector pos, box wall);
int cboxIntersect(box a, box b);
int cvinsideSphere(vector pos, vector center, float radius);
int cboxIntersectSphere(box a, vector center, float radius);
int csphereIntersectSphere(vector a, float ra, vector b, float rb);

#endif
