feat: fixed quaternion normalization

This commit is contained in:
Andrey Terentev 2025-04-07 23:33:12 +07:00
parent 0efc8dd18d
commit 4a4ade110a

View File

@ -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);
}
}