Fix bug when initializing nested struct / unions. Fix of mult of 2x2 matrix. Cleanup of cast.

This commit is contained in:
Christoffer Lerno
2023-02-28 20:43:43 +01:00
parent 6188a8b5df
commit b9dbefbe1b
4 changed files with 10 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ fn Matrix2x2 Matrix2x2.mul(Matrix2x2* a, Matrix2x2 b)
{
return Matrix2x2 {
a.m00 * b.m00 + a.m01 * b.m10, a.m00 * b.m01 + a.m01 * b.m11,
a.m10 * b.m01 + a.m11 * b.m11, a.m10 * b.m01 + a.m11 * b.m11,
a.m10 * b.m00 + a.m11 * b.m10, a.m10 * b.m01 + a.m11 * b.m11,
};
}