uk.ac.ed.inf.sdp2012.group7.strategy
Class ControlInterfaceTools

java.lang.Object
  extended by uk.ac.ed.inf.sdp2012.group7.strategy.ControlInterfaceTools

public class ControlInterfaceTools
extends java.lang.Object


Constructor Summary
ControlInterfaceTools()
           
 
Method Summary
static double angleToTurn(double ourAngle, double angleWanted)
           
static boolean checkIfBehind(double alpha)
          Checks if the goal point is behind the robot
static double convertAngle(double angle)
           
static double convertAngleAsStrategyDoes(double angle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlInterfaceTools

public ControlInterfaceTools()
Method Detail

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