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
+7 -2
View File
@@ -1,14 +1,19 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Runtime.CompilerServices;
using System.Runtime;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Math
{
[StructLayout(LayoutKind.Explicit)]
public struct Vec2D:IEquatable<Vec2D>
{
[FieldOffset(0)]
public float X;
[FieldOffset(sizeof(float))]
public float Y;
public Vec2D(float x,float y)
@@ -52,7 +57,7 @@ namespace StgSharp.Math
public override string ToString()
{
return $"{this.X},{this.Y}";
return $"{this.X}\t{this.Y}";
}
public static bool operator ==(Vec2D vec1, Vec2D vec2)