Graphic mat 44 is now generic; TextRegex source gen will use goto instead of do{}while()

This commit is contained in:
Youmu Liu
2026-09-07 17:51:15 +08:00
parent ee67dfbde1
commit 90c7538639
27 changed files with 805 additions and 713 deletions
@@ -26,11 +26,11 @@ namespace Nitload.Geometries
)
: base(local)
{
CoordMat = GraphicsMatrix.Unit;
CoordMat = GMatrix44<float>.Unit;
CoordMat.column[0] = new Vec4<float>(xAxis, 0);
CoordMat.column[1] = new Vec4<float>(yAxis, 0);
CoordMat.column[2] = new Vec4<float>(Linear.Normalize(Vec3.Cross(xAxis, yAxis)), 0);
CoordMat[0] = new Vec4<float>(xAxis, 0);
CoordMat[1] = new Vec4<float>(yAxis, 0);
CoordMat[2] = new Vec4<float>(Linear.Normalize(Vec3.Cross(xAxis, yAxis)), 0);
LocalOrigin = origin;
}