Public Member Functions | |
| Sector (const AngleDeg &min_angle, const AngleDeg &max_angle) | |
| Creates a new sector from two global angles. | |
| Sector (const Point &from, const Point &first_pos, const Point &last_pos) | |
| Creates a sector from three points, the source and two destination points. | |
| ~Sector () | |
| Destructure. | |
| AngleDeg | min_angle () const |
| Gets the absolute minimum global angle of the circle sector. | |
| AngleDeg | max_angle () const |
| Gets the absolute maximum global angle of the circle sector. | |
| AngleDeg | center () const |
| Gets the global angle that is the center of the circle sector. | |
| AngleDeg | width () const |
| The width of the circle sector in degrees. | |
| bool | contains (const AngleDeg &angle) const |
| Checks if the circle sector contains a specific global angle. | |
| void | set_min_angle (const AngleDeg &a) |
| Set the absolute minimum global angle of the circle sector. | |
| void | set_max_angle (const AngleDeg &a) |
| Set the absolute maximum global angle of the circle sector. | |
Protected Member Functions | |
| void | normalize () |
Definition at line 74 of file Sector.h.
|
||||||||||||
|
Creates a new sector from two global angles.
|
|
||||||||||||||||
|
Creates a sector from three points, the source and two destination points.
|
|
|
Gets the absolute minimum global angle of the circle sector.
Definition at line 85 of file Sector.cc. Referenced by RS::generate_direction_in_sector(), RS::get_largest_sector(), and RS::get_sector_wider_than(). |
|
|
Gets the absolute maximum global angle of the circle sector.
Definition at line 92 of file Sector.cc. Referenced by RS::generate_direction_in_sector(), RS::get_largest_sector(), and RS::get_sector_wider_than(). |
|
|
Gets the global angle that is the center of the circle sector.
Definition at line 99 of file Sector.cc. References width(). |
|
|
The width of the circle sector in degrees.
Definition at line 106 of file Sector.cc. Referenced by center(), and RS::get_largest_sector(). |
|
|
Checks if the circle sector contains a specific global angle.
Definition at line 113 of file Sector.cc. Referenced by RS::get_largest_sector(), and RS::get_sector_wider_than(). |
1.3-rc3