We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed311e commit fbbc503Copy full SHA for fbbc503
src/main/java/dev/zwazel/internal/game/transform/Quaternion.java
@@ -88,4 +88,12 @@ public Vec3 down() {
88
public Vec3 left() {
89
return this.apply(Vec3.X.multiply(-1));
90
}
91
+
92
+ public double getPitch() {
93
+ return Math.atan2(2 * (w * x + y * z), 1 - 2 * (x * x + y * y));
94
+ }
95
96
+ public double getYaw() {
97
+ return Math.atan2(2 * (w * z + x * y), 1 - 2 * (y * y + z * z));
98
99
0 commit comments