Zone
A rectangular bound that defines a specific zone with a purpose.
Zones are stored as two points, and are strictly rectangular. The tag of a zone denotes its purpose, while the display name (which should be unique) exists to differentiate zones for the user.
The coordinate system used by this class is the same as Translation2d, where x is "forward" and y is "sideways." More specifically, the positive x-axis points away from the driver wall, and the positive y-axis points perpendicularly left.
Zones also support serialization with kotlinx.serialization
Author
Matthew Clark
See also
Constructors
Creates a zone with rectangular bounds defined by opposite corners at points (x1, y1) and (x2, y2).
Creates a zone with rectangular bounds defined by opposite corners at points (x1, y1) and (x2, y2).
Creates a zone with two given opposite corners and bounds made from them.
Properties
The position of the bottom left corner of this zone
The position of the bottom right corner of this zone
The first corner of the rectangular bound of this zone.
The second corner of the rectangular bound of this zone.
A unique display name to differentiate this zone from possible similar ones for the user.