|
LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
2D sector region(OUGI-GATA) class More...
#include <sector_2d.h>


Public Member Functions | |
| Sector2D (const Vector2D &c, const double min_r, const double max_r, const AngleDeg &start, const AngleDeg &end) | |
| constructor with all variables More... | |
| const Sector2D & | assign (const Vector2D &c, const double min_r, const double max_r, const AngleDeg &start, const AngleDeg &end) |
| assign new value More... | |
| const Vector2D & | center () const |
| get the center point More... | |
| double | radiusMin () const |
| get the small side radius More... | |
| double | radiusMax () const |
| get the big side radius More... | |
| const AngleDeg & | angleLeftStart () const |
| get the left start angle More... | |
| const AngleDeg & | angleRightEnd () const |
| get the right end angle More... | |
| virtual double | area () const |
| calculate the area of this region More... | |
| virtual bool | contains (const Vector2D &point) const |
| check if point is within this region More... | |
| double | getCircumferenceMin () const |
| get smaller side circumference(ENSYUU NO NAGASA) More... | |
| double | getCircumferenceMax () const |
| get bigger side circumference(ENSYUU NO NAGASA) More... | |
Public Member Functions inherited from rcsc::Region2D | |
| virtual | ~Region2D () |
| virtual destructor. | |
| virtual double | area () const =0 |
| get the area of this region More... | |
| virtual bool | contains (const Vector2D &point) const =0 |
| check if this region contains 'point'. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from rcsc::Region2D | |
| Region2D () | |
| accessible only from derived classes | |
2D sector region(OUGI-GATA) class
| rcsc::Sector2D::Sector2D | ( | const Vector2D & | c, |
| const double | min_r, | ||
| const double | max_r, | ||
| const AngleDeg & | start, | ||
| const AngleDeg & | end | ||
| ) |
constructor with all variables
| c | center point |
| min_r | smaller radius |
| max_r | bigger radius |
| start | start angle(turn clockwise) |
| end | end angle(turn clockwise) |
|
inline |
get the left start angle
|
inline |
get the right end angle
|
virtual |
| const Sector2D & rcsc::Sector2D::assign | ( | const Vector2D & | c, |
| const double | min_r, | ||
| const double | max_r, | ||
| const AngleDeg & | start, | ||
| const AngleDeg & | end | ||
| ) |
assign new value
| c | center point |
| min_r | smaller radius |
| max_r | bigger radius |
| start | start angle(turn clockwise) |
| end | end angle(turn clockwise) |
|
inline |
get the center point
|
inlinevirtual |
check if point is within this region
| point | considered point |
Implements rcsc::Region2D.
|
inline |
get bigger side circumference(ENSYUU NO NAGASA)
|
inline |
get smaller side circumference(ENSYUU NO NAGASA)
|
inline |
get the big side radius
|
inline |
get the small side radius