daily update on 20230829 by nitload youmu

This commit is contained in:
Nitload
2023-08-29 22:29:47 +08:00
parent 8aac9fee87
commit 1fcbfb972b
125 changed files with 6505 additions and 2077 deletions
+19 -7
View File
@@ -23,14 +23,16 @@ namespace StgSharp
Console.WriteLine(matrix.Det());
/*
/**/
System.Numerics.Matrix4x4 m = new System.Numerics.Matrix4x4(
0,1,2,3,
0,0,1,2,
0,0,0,0,
1,2,5,6
1, 1, -1, 2,
-1, -1, -4, 1,
2, 4, -6, 1,
1, 2, 4, 2
);
Console.WriteLine(m.GetDeterminant());
/**/
int cycle = 1000;
int time = 10000;
@@ -42,7 +44,12 @@ namespace StgSharp
sw.Start();
for (int i = 0; i < time; i++)
{
Matrix4x4 mat = matrix * matrix;
Matrix4x4 matrix4X4 = new Matrix4x4(
1, 1, -1, 2,
-1, -1, -4, 1,
2, 4, -6, 1,
1, 2, 4, 2
);
}
sw.Stop();
@@ -53,7 +60,12 @@ namespace StgSharp
sw2.Start();
for (int i = 0; i < time; i++)
{
System.Numerics.Matrix4x4 mat = m * m;
System.Numerics.Matrix4x4 test = new System.Numerics.Matrix4x4(
1, 1, -1, 2,
-1, -1, -4, 1,
2, 4, -6, 1,
1, 2, 4, 2
);
}
sw2.Stop();