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);
|
||||
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -19,13 +19,6 @@
|
||||
<param name="x"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.GetBits32(System.Single)">
|
||||
<summary>
|
||||
Get the bits of a float number
|
||||
</summary>
|
||||
<param name="x">The given float number</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Calc.Log(System.Single)">
|
||||
<summary>
|
||||
|
||||
@@ -179,6 +172,14 @@
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.Matrix3x2,StgSharp.Math.Matrix2x2)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="matrix1"></param>
|
||||
<param name="matrix2"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.VectorCalc.multiple(StgSharp.Math.Matrix3x2,StgSharp.Math.Matrix2x3)">
|
||||
<summary>
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user