Class Position
- java.lang.Object
-
- ca.team3161.lib.robot.motion.tracking.Position
-
public class Position extends java.lang.ObjectRepresents 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 booleanequals(java.lang.Object o)doublegetTheta()Get the net change in rotation.doublegetX()Get the net x distance co-ordinate.doublegetY()Get the net y distance co-ordinate.inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-