Class Position
- java.lang.Object
-
- ca.team3161.lib.robot.motion.tracking.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-