daily update on 20230228 by nitload youmu

This commit is contained in:
Nitload
2023-03-01 00:04:40 +08:00
parent 035fb9a432
commit d09105c9c1
49 changed files with 258 additions and 117 deletions
+6 -1
View File
@@ -1,14 +1,19 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Math
{
[StructLayout(LayoutKind.Explicit)]
public struct Vec3D : IEquatable<Vec3D>
{
[FieldOffset(0)]
public float X;
[FieldOffset(4)]
public float Y;
[FieldOffset(8)]
public float Z;
public Vec3D(float x, float y, float z)
@@ -55,7 +60,7 @@ namespace StgSharp.Math
public override string ToString()
{
return $"{X},{Y},{Z}";
return $"{X}\t{Y}\t{Z}";
}
public static bool operator ==(Vec3D vec1,Vec3D vec2)