ClanLib
2.3.7
|
Collision detection outline segmentation circle. More...
#include <outline_circle.h>
Public Member Functions | |
Construction | |
CL_OutlineCircle () | |
Construct a outline circle. More... | |
Operations | |
bool | collide (const CL_OutlineCircle &other) const |
Construct a outline circle. More... | |
Public Attributes | |
Attributes | |
CL_Pointf | position |
float | radius |
unsigned int | start |
unsigned int | end |
Collision detection outline segmentation circle.
Outline circles split the line segments into groups for faster collision detection. If two circles encapsulating the lines don't collide, none of the lines inside them can collide either.
|
inline |
Construct a outline circle.
|
inline |
Construct a outline circle.
other | Other circle to test. |
References position, radius, CL_Vec2< Type >::x, and CL_Vec2< Type >::y.
unsigned int CL_OutlineCircle::end |
float CL_OutlineCircle::radius |
Referenced by collide().
unsigned int CL_OutlineCircle::start |