コード例 #1
0
ファイル: Tank.java プロジェクト: poffdeluxe/BattleTanks
 public double getDirection(Tank that) {
   Coordinate other = that.getLocation();
   return Math.atan2(other.y() - location.y(), other.x() - location.x());
 }