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.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)
|
||||
|
||||
Reference in New Issue
Block a user