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.Object
A set of four vectors corresponding to the four wheels of the bot.
-
-
Field Summary
Fields Modifier and Type Field Description WheelVector
left1
The vector for the front left wheel.WheelVector
left2
The vector for the rear left wheel.WheelVector
right1
The vector for the front right wheel.WheelVector
right2
The vector for the rear right wheel.static WheelVector.VectorSet
ZERO
The 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 boolean
equals(WheelVector.VectorSet set)
Returns whether the given vector set is equal to another.java.lang.String
toString()
-
-
-
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:
toString
in 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.
-
-