daily update on 20230730 by nitload youmu, 5th day of params displacement
This commit is contained in:
+42
-29
@@ -1,42 +1,55 @@
|
||||
using StgSharp;
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
|
||||
internal class Program
|
||||
internal static class Program
|
||||
{
|
||||
private unsafe static void Main(string[] args)
|
||||
{
|
||||
int time = 100000;
|
||||
/**/
|
||||
for (int i = 0; i < 10000000; i++)
|
||||
{
|
||||
int f = Calc.RandomSeed();
|
||||
if (i%1000==0)
|
||||
{
|
||||
Console.WriteLine(f);
|
||||
}
|
||||
}
|
||||
/**/
|
||||
|
||||
/*
|
||||
for (int i = 0; i < 1000000; i++)
|
||||
{
|
||||
int a = Calc.RandomSeed();
|
||||
if (a==0)
|
||||
{
|
||||
Console.WriteLine(Calc.currentSeed);
|
||||
Console.WriteLine(Calc.Random());
|
||||
Console.WriteLine(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Matrix4x4 matrix = new Matrix4x4(
|
||||
0,0,0,0,
|
||||
1,2,3,4,
|
||||
0,0,0,0,
|
||||
0,0,0,0
|
||||
);
|
||||
|
||||
Console.WriteLine((long)matrix._row0Ptr/16.0);
|
||||
Console.WriteLine((long)matrix._row1Ptr/16.0);
|
||||
Console.WriteLine((long)matrix._row2Ptr/16.0);
|
||||
Console.WriteLine((long)matrix._row3Ptr/16.0);
|
||||
|
||||
Matrix4x4 matrix2 = new Matrix4x4(
|
||||
0, 0, 0, 0,
|
||||
1, 2, 3, 4,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0
|
||||
);
|
||||
|
||||
Console.WriteLine((long)matrix2._row0Ptr / 16.0);
|
||||
Console.WriteLine((long)matrix2._row1Ptr / 16.0);
|
||||
Console.WriteLine((long)matrix2._row2Ptr / 16.0);
|
||||
Console.WriteLine((long)matrix2._row3Ptr / 16.0);
|
||||
|
||||
Console.WriteLine(matrix+matrix2);
|
||||
/**/
|
||||
Vec4d vec = new Vec4d(1,2,2,3);
|
||||
|
||||
IntPtr ptr1 = internalIO.InternalInitM128(1,2,3,4);
|
||||
IntPtr ptr2 = internalIO.InternalInitM128(2,2,3,3);
|
||||
|
||||
Console.WriteLine(ptr1);
|
||||
Console.WriteLine(ptr2);
|
||||
|
||||
|
||||
IntPtr ret = internalIO.InternalInitM128(0,0,0,0);
|
||||
|
||||
internalIO.VecAddVec(ptr1,ptr2,ret);
|
||||
|
||||
Console.WriteLine(*(M128*)ret);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user