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 double
getX()
double
getY()
void
rotateBy(double angle)
Rotate the Error by and angle (in degrees)void
setX(double x)
void
setY(double y)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-