daily update on 20230228 by nitload youmu
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user