Photon 0.0.2 Simple Open Source 2D Game API |
CircleDefines geometric entity known as a circle. A plane curve everywhere equidistant from a given fixed point, the center. http://dictionary.com Operators
Summary
|
Default constructor for circle, sets position to (0,0) and radius to 0.
Circle()
Destructor, does nothing, exists to make Circle inheritance safe.
virtual ~Circle()
Move the center of the Circle to a new location.
void moveTo( const Point2 & center )
Move the center of the Circle a given x and y distance.
void moveRel( scalar xMove, scalar yMove )
Change the size of the Circle.
void resize( scalar radius )
Change the size of the Circle in relation to the current size.
void resizeRel( scalar radiusChange )
Check if circle intersects another.
bool intersects( const Circle & circle ) const
Check if circle contains a given point.
bool contains( const Point2 & point ) const
Get center Point2.
Point2 getCenter() const
Get radius of Circle.
scalar getRadius() const