uk.ac.ed.inf.sdp2012.group7.strategy
Class ControlInterfaceTools
java.lang.Object
uk.ac.ed.inf.sdp2012.group7.strategy.ControlInterfaceTools
public class ControlInterfaceTools
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlInterfaceTools
public ControlInterfaceTools()
convertAngle
public static double convertAngle(double angle)
convertAngleAsStrategyDoes
public static double convertAngleAsStrategyDoes(double angle)
angleToTurn
public static double angleToTurn(double ourAngle,
double angleWanted)
checkIfBehind
public static boolean checkIfBehind(double alpha)
- Checks if the goal point is behind the robot
- Parameters:
alpha
-
- Returns:
- If the goal point is behind the robot or not