Package frc.lib5k.kinematics
Class Error2D
- java.lang.Object
-
- frc.lib5k.kinematics.Error2D
-
public class Error2D extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Error2D(double x, double y)Create a new Error2D
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()doublegetY()voidrotateBy(double angle)Rotate the Error by and angle (in degrees)voidsetX(double x)voidsetY(double y)java.lang.StringtoString()
-
-
-
Method Detail
-
rotateBy
public void rotateBy(double angle)
Rotate the Error by and angle (in degrees)- Parameters:
angle- Angle to rotate goal by
-
getX
public double getX()
-
getY
public double getY()
-
setX
public void setX(double x)
-
setY
public void setY(double y)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-