34 lines
631 B
C#
34 lines
631 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 - v2;
|
|
|
|
Console.WriteLine();
|
|
|
|
Console.WriteLine(v3);
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|