diff options
Diffstat (limited to 'src/main/java/rosegoldaddons/utils/Rotation.java')
-rw-r--r-- | src/main/java/rosegoldaddons/utils/Rotation.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/main/java/rosegoldaddons/utils/Rotation.java b/src/main/java/rosegoldaddons/utils/Rotation.java deleted file mode 100644 index f18d5ef..0000000 --- a/src/main/java/rosegoldaddons/utils/Rotation.java +++ /dev/null @@ -1,44 +0,0 @@ -package rosegoldaddons.utils; - - -public class Rotation { - private float yaw; - private float pitch; - - public Rotation(float yaw, float pitch) { - this.yaw = yaw; - this.pitch = pitch; - } - - public float getYaw() { - return this.yaw; - } - - public void setYaw(float yaw) { - this.yaw = yaw; - } - - public float getPitch() { - return this.pitch; - } - - public void setPitch(float pitch) { - this.pitch = pitch; - } - - public void addYaw(float yaw) { - this.yaw += yaw; - } - - public void addPitch(float pitch) { - this.pitch += pitch; - } - - public float getValue() { - return Math.abs(this.yaw) + Math.abs(this.pitch); - } - - public String toString() { - return "Rotation{yaw=" + this.yaw + ", pitch=" + this.pitch + '}'; - } -} |