Package com.pathplanner.lib.util
Enum Class FlippingUtil.FieldSymmetry
- All Implemented Interfaces:
Serializable
,Comparable<FlippingUtil.FieldSymmetry>
,java.lang.constant.Constable
- Enclosing class:
- FlippingUtil
Enum representing the different types of field symmetry
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionField is mirrored vertically over the center of the fieldField is rotationally symmetric. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlippingUtil.FieldSymmetry
Returns the enum constant of this class with the specified name.static FlippingUtil.FieldSymmetry[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kRotational
Field is rotationally symmetric. i.e. the red alliance side is the blue alliance side rotated by 180 degrees -
kMirrored
Field is mirrored vertically over the center of the field
-
-
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
-