Class Position


  • public class Position
    extends java.lang.Object
    Represents a Robot position on the field, relative to some known starting position (eg the starting position of the Robot at the beginning of a match/when it was powered on).
    • Constructor Summary

      Constructors 
      Constructor Description
      Position​(double x, double y, double theta)
      Construct a new Position.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      double getTheta()
      Get the net change in rotation.
      double getX()
      Get the net x distance co-ordinate.
      double getY()
      Get the net y distance co-ordinate.
      int hashCode()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Position

        public Position​(double x,
                        double y,
                        double theta)
        Construct a new Position.
        Parameters:
        x - net x distance co-ordinate
        y - net y distance co-ordinate
        theta - net change in rotation
    • Method Detail

      • getX

        public double getX()
        Get the net x distance co-ordinate.
        Returns:
        the net x distance co-ordinate
      • getY

        public double getY()
        Get the net y distance co-ordinate.
        Returns:
        the net y distance co-ordinate
      • getTheta

        public double getTheta()
        Get the net change in rotation.
        Returns:
        the net change in rotation
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object