Class 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 Detail

      • 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 class java.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.