Fix Vector4f.mulAffineTranspose()
@@ -985,10 +985,10 @@ public class Vector4f implements Externalizable, Vector4fc {
public Vector4f mulAffineTranspose(Matrix4fc mat, Vector4f dest) {
float x = this.x, y = this.y, z = this.z, w = this.w;
- dest.x = Math.fma(mat.m00(), x, Math.fma(mat.m01(), y, Math.fma(mat.m02(), z, mat.m03() * w)));
- dest.y = Math.fma(mat.m10(), x, Math.fma(mat.m11(), y, Math.fma(mat.m12(), z, mat.m13() * w)));
- dest.z = Math.fma(mat.m20(), x, Math.fma(mat.m21(), y, Math.fma(mat.m22(), z, mat.m23() * w)));
- dest.w = w;
+ dest.x = Math.fma(mat.m00(), x, Math.fma(mat.m01(), y, mat.m02() * z));
+ dest.y = Math.fma(mat.m10(), x, Math.fma(mat.m11(), y, mat.m12() * z));
+ dest.z = Math.fma(mat.m20(), x, Math.fma(mat.m21(), y, mat.m22() * z));
+ dest.w = Math.fma(mat.m30(), x, Math.fma(mat.m31(), y, mat.m32() * z + w));
return dest;
}
private Vector4f mulGenericTranspose(Matrix4fc mat, Vector4f dest) {
