ClanLib  2.3.7
List of all members
CL_OutlineCircle Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

CL_OutlineCircle::CL_OutlineCircle ( )
inline

Construct a outline circle.

Member Function Documentation

bool CL_OutlineCircle::collide ( const CL_OutlineCircle other) const
inline

Construct a outline circle.

Parameters
otherOther circle to test.

References position, radius, CL_Vec2< Type >::x, and CL_Vec2< Type >::y.

Member Data Documentation

unsigned int CL_OutlineCircle::end
CL_Pointf CL_OutlineCircle::position

Referenced by collide().

float CL_OutlineCircle::radius

Referenced by collide().

unsigned int CL_OutlineCircle::start

The documentation for this class was generated from the following file: