Enum Class FieldSymmetry

java.lang.Object
java.lang.Enum<FieldSymmetry>
com.thunder.lib.trajectory.FieldSymmetry
All Implemented Interfaces:
Serializable, Comparable<FieldSymmetry>, Constable

public enum FieldSymmetry extends Enum<FieldSymmetry>
Field symmetry changes how trajectories are modified based on the selected alliance color.
  • Enum Constant Details

    • NONE

      public static final FieldSymmetry NONE
      The trajectory remains the same regardless of alliance color.
    • ROTATIONAL

      public static final FieldSymmetry ROTATIONAL
      Rotated 180 degrees, like 2022, 2025, and 2026. On red, both X and Y coordinates are inverted. Rotations are flipped by 180.
    • REFLECTIONAL

      public static final FieldSymmetry 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

      public static FieldSymmetry[] 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

      public static FieldSymmetry valueOf(String name)
      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 name
      NullPointerException - if the argument is null