#include <choreo/util/AllianceFlipperUtil.h>
|
static constexpr units::meter_t | FlipX (units::meter_t x) |
|
static constexpr units::meter_t | FlipY (units::meter_t y) |
|
static constexpr units::radian_t | FlipHeading (units::radian_t heading) |
|
|
static constexpr bool | isMirrored = false |
| Whether pose should be mirrored.
|
|
X becomes fieldLength - x, Y becomes fieldWidth - y, and heading becomes pi - heading.
◆ FlipHeading()
static constexpr units::radian_t choreo::util::RotateAroundFlipper::FlipHeading |
( |
units::radian_t |
heading | ) |
|
|
inlinestaticconstexpr |
Flips the heading.
- Parameters
-
heading | The heading to flip. |
- Returns
- The flipped heading.
◆ FlipX()
static constexpr units::meter_t choreo::util::RotateAroundFlipper::FlipX |
( |
units::meter_t |
x | ) |
|
|
inlinestaticconstexpr |
Flips the X coordinate.
- Parameters
-
x | The X coordinate to flip. |
- Returns
- The flipped X coordinate.
◆ FlipY()
static constexpr units::meter_t choreo::util::RotateAroundFlipper::FlipY |
( |
units::meter_t |
y | ) |
|
|
inlinestaticconstexpr |
Flips the Y coordinate.
- Parameters
-
y | The Y coordinate to flip. |
- Returns
- The flipped Y coordinate.
The documentation for this struct was generated from the following file: