GT RoboCup SSL
Soccer software, robot firmware
Geometry2d::Circle Class Reference

Public Member Functions

 Circle (Point c, float r)
 
 Circle (const Circle &other)
 
Shapeclone () const override
 
float radius_sq () const
 
void radius_sq (float value)
 
float radius () const
 
void radius (float value)
 
bool containsPoint (Point pt) const override
 
bool hit (Point pt) const override
 Returns true if the given point is within one robot radius of the shape.
 
bool hit (const Segment &pt) const override
 
bool nearPoint (Point pt, float threshold) const override
 
int intersects (Circle &other, Point *i=nullptr) const
 
int intersects (const Line &line, Point *i=nullptr) const
 
bool tangentPoints (Point src, Point *p1=nullptr, Point *p2=nullptr) const
 
Point nearestPoint (Point p) const
 finds the point on the circle closest to
 
std::string toString () override
 

Public Attributes

Point center
 

Protected Attributes

float _r
 
float _rsq
 
+ Inheritance diagram for Geometry2d::Circle:
+ Collaboration diagram for Geometry2d::Circle:

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