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
+8 -12
View File
@@ -1,14 +1,10 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace StgSharp.Math
{
[StructLayout(LayoutKind.Explicit)]
public struct matrix3x4:IEquatable<matrix3x4>
public struct matrix3x4 : IEquatable<matrix3x4>
{
[FieldOffset(0)]
public vec4d row1;
@@ -18,7 +14,7 @@ namespace StgSharp.Math
public vec4d row3;
public matrix3x4(
vec4d r1,vec4d r2,vec4d r3
vec4d r1, vec4d r2, vec4d r3
)
{
this.row1 = r1;
@@ -32,9 +28,9 @@ namespace StgSharp.Math
float a31, float a32, float a33, float a34
)
{
row1 = new vec4d(a11,a12,a13,a14);
row2 = new vec4d(a21,a22,a23,a24);
row3 = new vec4d(a31,a32,a33,a34);
row1 = new vec4d(a11, a12, a13, a14);
row2 = new vec4d(a21, a22, a23, a24);
row3 = new vec4d(a31, a32, a33, a34);
}
public override bool Equals(object obj)
@@ -69,7 +65,7 @@ namespace StgSharp.Math
public override int GetHashCode()
{
return HashCode.Combine(this.row1,this.row2,this.row3);
return HashCode.Combine(this.row1, this.row2, this.row3);
}
public override string ToString()
@@ -77,7 +73,7 @@ namespace StgSharp.Math
return $"{this.row1}\n{this.row2}\n{this.row3}";
}
}
}