そこで、Slick2D で Vecter2f というクラスを見つけました。その中に getTheta というメソッドがあります。これが何をするのかはわかりませんが、それが役立つ場合はメソッドのソースを入手しました。そして、この方法は何の役に立つのですか?
public strictfp double getTheta() {
double theta = StrictMath.toDegrees(StrictMath.atan2(this.y, this.x));
if ((theta < -360.0D) || (theta > 360.0D)) {
theta %= 360.0D;
}
if (theta < 0.0D) {
theta += 360.0D;
}
return theta;
}