Move MakeFloatMatrix to Graphics.Util.

This commit is contained in:
Paul Chote
2013-06-08 18:19:23 +12:00
parent 5f0ab1f62d
commit 4152f61999
2 changed files with 11 additions and 11 deletions

View File

@@ -231,6 +231,14 @@ namespace OpenRA.Graphics
return mtx;
}
public static float[] MakeFloatMatrix(int[] imtx)
{
var fmtx = new float[16];
for (var i = 0; i < 16; i++)
fmtx[i] = imtx[i]*1f / imtx[15];
return fmtx;
}
public static float[] MatrixAABBMultiply(float[] mtx, float[] bounds)
{
// Corner offsets