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