New IO structure, unexpexted error in C code

This commit is contained in:
Nitload
2023-06-22 03:33:24 +08:00
parent 50b4965e54
commit ee8132c149
172 changed files with 1344 additions and 4023 deletions
+6 -9
View File
@@ -1,13 +1,10 @@
using System;
using System.Collections.Generic;
using System.IO.Compression;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Math
{
[StructLayout(LayoutKind.Explicit)]
public struct matrix2x2:IEquatable<matrix2x2>
public struct matrix2x2 : IEquatable<matrix2x2>
{
[FieldOffset(0)]
public vec2d row1;
@@ -64,7 +61,7 @@ namespace StgSharp.Math
public override int GetHashCode()
{
return HashCode.Combine(row1,row2);
return HashCode.Combine(row1, row2);
}
public override string ToString()
@@ -72,7 +69,7 @@ namespace StgSharp.Math
return $"{row1}\n{row2}";
}
public static matrix2x2 operator +(matrix2x2 matrix1 , matrix2x2 matrix2)
public static matrix2x2 operator +(matrix2x2 matrix1, matrix2x2 matrix2)
{
return new matrix2x2(
matrix1.row1 + matrix2.row1,
@@ -88,9 +85,9 @@ namespace StgSharp.Math
);
}
}
}