21 #ifndef GF_COLLISION_H
22 #define GF_COLLISION_H
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101 #ifndef DOXYGEN_SHOULD_SKIP_THIS
bool collides(const Polygon &lhs, const Polygon &rhs, Penetration &p)
Check if two polygons collides.
bool collides(const CircF &lhs, const RectF &rhs, Penetration &p)
Check if a circle collides with a rectangle.
Vector2f normal
Collision normal.
Definition: Collision.h:42
bool collides(const CircF &lhs, const CircF &rhs, Penetration &p)
Check if two circles collides.
float depth
Penetration depth.
Definition: Collision.h:43
A convex polygon.
Definition: Polygon.h:40
Data about the collision between two objects.
Definition: Collision.h:41
bool collides(const RectF &lhs, const CircF &rhs, Penetration &p)
Check if a rectangle collides with a circle.
#define GF_API
Definition: Portability.h:35
bool collides(const RectF &lhs, const RectF &rhs, Penetration &p)
Check if two rectangles collides.