1 #ifndef __COLLISION_H__
2 #define __COLLISION_H__
14 /** does collision detection between 2 rectangles. Returns true in case of
15 * collision and fills in the hit structure then.
17 static bool rectangle_rectangle(CollisionHit& hit, const Rectangle& r1,
20 /** does collision detection between a rectangle and an axis aligned triangle
21 * Returns true in case of a collision and fills in the hit structure then.
23 static bool rectangle_aatriangle(CollisionHit& hit, const Rectangle& rect,
24 const AATriangle& triangle);