Package frc.team4373.swerve
Class WheelVector.VectorSet
- java.lang.Object
-
- frc.team4373.swerve.WheelVector.VectorSet
-
- Enclosing class:
- WheelVector
public static class WheelVector.VectorSet extends java.lang.ObjectA set of four vectors corresponding to the four wheels of the bot.
-
-
Field Summary
Fields Modifier and Type Field Description WheelVectorleft1The vector for the front left wheel.WheelVectorleft2The vector for the rear left wheel.WheelVectorright1The vector for the front right wheel.WheelVectorright2The vector for the rear right wheel.static WheelVector.VectorSetZEROThe set of vectors which are all zero.
-
Constructor Summary
Constructors Constructor Description VectorSet(WheelVector right1, WheelVector right2, WheelVector left1, WheelVector left2)Constructs a new WheelVector VectorSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(WheelVector.VectorSet set)Returns whether the given vector set is equal to another.java.lang.StringtoString()
-
-
-
Field Detail
-
ZERO
public static final WheelVector.VectorSet ZERO
The set of vectors which are all zero.
-
right1
public WheelVector right1
The vector for the front right wheel.
-
right2
public WheelVector right2
The vector for the rear right wheel.
-
left1
public WheelVector left1
The vector for the front left wheel.
-
left2
public WheelVector left2
The vector for the rear left wheel.
-
-
Constructor Detail
-
VectorSet
public VectorSet(WheelVector right1, WheelVector right2, WheelVector left1, WheelVector left2)
Constructs a new WheelVector VectorSet.- Parameters:
right1- the vector for the front right wheel.right2- the vector for the rear right wheel.left1- the vector for the front left wheel.left2- the vector for the rear left wheel.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(WheelVector.VectorSet set)
Returns whether the given vector set is equal to another.- Parameters:
set- the vector set against which to compare.- Returns:
- true if equal, false if not.
-
-