Package com.thunder.lib.trajectory
Enum Class FieldSymmetry
- All Implemented Interfaces:
Serializable,Comparable<FieldSymmetry>,Constable
Field symmetry changes how trajectories are modified based on the selected
alliance color.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe trajectory remains the same regardless of alliance color.Mirrored across the center line, like 2023 and 2024.Rotated 180 degrees, like 2022, 2025, and 2026. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldSymmetryReturns the enum constant of this class with the specified name.static FieldSymmetry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The trajectory remains the same regardless of alliance color. -
ROTATIONAL
Rotated 180 degrees, like 2022, 2025, and 2026. On red, both X and Y coordinates are inverted. Rotations are flipped by 180. -
REFLECTIONAL
Mirrored across the center line, like 2023 and 2024. On red, only the X coordinate is inverted. Rotations are flipped by 180
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-