所以我發現這個類在Slick2D中叫做Vecter2f,裏面有一個名爲getTheta的方法。我不知道這是什麼,但如果這有助於我獲得方法的來源。這種方法有什麼用處?Theta做什麼?
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;
}