daily update on 20230316 by nitload youmu
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user