Daily update on 20230803 by nitload youmu, problem of parameter displacement solved, rewriting other linear math

This commit is contained in:
Nitload
2023-08-03 22:46:16 +08:00
parent 194d65edf6
commit aae7e0292c
105 changed files with 13858 additions and 11394 deletions
+6 -6
View File
@@ -7,11 +7,11 @@ namespace StgSharp.Math
public struct matrix2x3 : IEquatable<matrix2x3>
{
[FieldOffset(0)]
public vec3d row1;
public Vec3d row1;
[FieldOffset(12)]
public vec3d row2;
public Vec3d row2;
public matrix2x3(vec3d r1, vec3d r2)
public matrix2x3(Vec3d r1, Vec3d r2)
{
row1 = r1;
row2 = r2;
@@ -22,8 +22,8 @@ namespace StgSharp.Math
float r21, float r22, float r23
)
{
row1 = new vec3d(r11, r12, r13);
row2 = new vec3d(r21, r22, r23);
row1 = new Vec3d(r11, r12, r13);
row2 = new Vec3d(r21, r22, r23);
}
public override bool Equals(object obj)
@@ -38,7 +38,7 @@ namespace StgSharp.Math
}
else
{
return this.Equals((vec3d)obj);
return this.Equals((Vec3d)obj);
}
}