GT RoboCup SSL
Soccer software, robot firmware
|
An arc (a segment of a circle) specified by a center point, a radius and a starting and ending angle. More...
Public Member Functions | |
Arc () | |
Default-initialze an arc to the empty arc. | |
Arc (Point center, float radius, float start, float end) | |
Initialize an arc with a given center, radius, and starting and ending angle (in radians). More... | |
Point | center () const |
void | setCenter (Point center) |
float | radius () const |
void | setRadius (float radius) |
float | start () const |
void | setStart (float start) |
float | end () const |
void | setEnd (float end) |
float | radius_sq () const |
std::vector< Point > | intersects (const Line &line) const |
std::vector< Point > | intersects (const Segment &segment) const |
An arc (a segment of a circle) specified by a center point, a radius and a starting and ending angle.
|
inline |
Initialize an arc with a given center, radius, and starting and ending angle (in radians).
center | the center point of the characteristic circle |
radius | the radius of the characteristic circle |
start | the starting angle in radians in the range [-M_PI, M_PI] |
end | the ending angle in radians in the range [-M_PI, M_PI] |