◆ EighteenZonePitchDivision()
The field is divided into 18 equally sized rectangles.
- Parameters
-
| field | The field to divide up into 18 zones (see ascii art above) |
◆ getAllZoneIds()
| const std::vector< EighteenZoneId > & getAllZoneIds |
( |
| ) |
const |
|
overridevirtual |
◆ getZone()
| const Rectangle & getZone |
( |
EighteenZoneId |
zone_id | ) |
const |
|
overridevirtual |
Given a zone id, return the rectangular region on the field the zone id corresponds to. It is up to the implementation to define the mapping between the zone_id and the corresponding region.
NOTE: Since most soccer pitch divisions are indexed starting at 1, we define zone 0 to be the entire field.
- Parameters
-
- Returns
- The rectangle on the field corresponding to the zone
Implements FieldPitchDivision< EighteenZoneId >.
◆ getZoneId()
| EighteenZoneId getZoneId |
( |
const Point & |
position | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: