daily update on 20230316 by nitload youmu

This commit is contained in:
Nitload
2023-03-17 01:52:35 +08:00
parent 2b3c6cea88
commit 167e33a3dd
95 changed files with 191669 additions and 85 deletions
+34 -8
View File
@@ -7,17 +7,43 @@ internal class Program
{
private unsafe static void Main(string[] args)
{
var a = new Matrix3x2(1, 2, 3, 4, 5, 6);
var b = new Matrix2x2(1, 2, 3, 4);
var c = new Colum2D(1, 2);
var d = new Vec2D(1, 2);
var e = new Vec3D(1,2,3);
var f = new Matrix2x2(1,2,3,4);
float a = MathF.Sqrt(10.00f) ;
Console.WriteLine(a);
Console.WriteLine("\n");
Console.WriteLine(a.multiple(b));
/*
double time;
TimeSpan span;
for (int i = 0; i < 1000; i++)
{
Stopwatch stopwatch01 = Stopwatch.StartNew();
stopwatch01.Start();
for (int t = 0; t < 1000000; t++)
{
float a = Calc.Sqrt(t);
}
stopwatch01.Stop();
span = stopwatch01.Elapsed;
time = span.TotalMilliseconds;
Console.WriteLine(time);
Stopwatch stopwatch02 = new Stopwatch();
stopwatch02.Start();
for (int t = 0; t < 1000000; t++)
{
float a = MathF.Sqrt(t);
}
stopwatch02.Stop();
span = stopwatch02.Elapsed;
time = span.TotalMilliseconds;
Console.WriteLine(time);
}
*/
}
}