Exemple #1
0
 /**
  * Returns the angle from point (x,y) to the center of the battle field.
  *
  * @param x x-coordinate
  * @param y y-coordinate
  * @param bb battlefield bounds
  * @return Robocode angle from (x,y) to center of battlefield
  */
 public static double getRobocodeAngleToCenter(double x, double y, Rectangle2D.Double bb) {
   return getRobocodeAngle(x, y, bb.getCenterX(), bb.getCenterY());
 }