public double getDirection(Tank that) { Coordinate other = that.getLocation(); return Math.atan2(other.y() - location.y(), other.x() - location.x()); }