feat: fixed quaternion normalization
This commit is contained in:
parent
0efc8dd18d
commit
4a4ade110a
@ -14,6 +14,6 @@ public record Quaternion(double x, double y, double z, double w) {
|
||||
|
||||
public Quaternion normalize() {
|
||||
var length = length();
|
||||
return new Quaternion(x / length, y / length, z / length, w);
|
||||
return new Quaternion(x / length, y / length, z / length, w / length);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user