|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.BotMath
Robot math library
Constructor Summary | |
BotMath()
|
Method Summary | |
static double |
degree2radians(double degree)
|
static double |
getAngle(double x1,
double y1,
double x2,
double y2)
|
static double |
getBearing(double heading,
double x1,
double y1,
double x2,
double y2)
Calculates the bearing of a robot regard a point |
static double |
normalAbsoluteAngle(double angle)
Calulate normal absolute angle |
static double |
normalRelativeAngle(double angle)
Calulate normal relative angle |
static double |
pointsDistance(double x1,
double y1,
double x2,
double y2)
|
static double |
radians2degree(double radians)
|
static double |
shotSpeed(double power)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BotMath()
Method Detail |
public static final double normalRelativeAngle(double angle)
angle
- Angle to be normalized
public static final double normalAbsoluteAngle(double angle)
angle
- Angle to be normalized
public static final double getBearing(double heading, double x1, double y1, double x2, double y2)
heading
- Robot headingx1
- Robot X positiony1
- Robot Y positionx2
- Target X positiony2
- Target Y position
public static final double getAngle(double x1, double y1, double x2, double y2)
public static final double radians2degree(double radians)
public static final double degree2radians(double degree)
public static final double shotSpeed(double power)
public static final double pointsDistance(double x1, double y1, double x2, double y2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |