48 lines
894 B
C#
48 lines
894 B
C#
using StgSharp.Math;
|
|
using System;
|
|
using System.Runtime.Intrinsics;
|
|
|
|
namespace StgSharp
|
|
{
|
|
|
|
internal static class Program
|
|
{
|
|
private unsafe static void Main(string[] args)
|
|
{
|
|
/*
|
|
|
|
Vec3d v = new Vec3d(1,2,3);
|
|
Console.WriteLine(v._m128Ptr);
|
|
Console.WriteLine(v);
|
|
Console.WriteLine();
|
|
|
|
Vec3d v2 = new Vec3d(2,2,3);
|
|
Console.WriteLine(v2._m128Ptr);
|
|
Console.WriteLine(v2);
|
|
Console.WriteLine();
|
|
|
|
Vec3d v3 = v / 114514.0f;
|
|
|
|
Console.WriteLine();
|
|
|
|
Console.WriteLine(v3);
|
|
|
|
/**/
|
|
|
|
Matrix4x4 m1 = new Matrix4x4(
|
|
1,2,3,4,
|
|
5,6,7,8,
|
|
1,2,3,4,
|
|
5,6,7,8
|
|
);
|
|
|
|
Console.WriteLine(VectorCalc.Multiple(m1,m1));
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|