Replace Matrix3 with System.Numerics.Matrix3x2 (#5078)

* Delete Matrix3. Replace with System.Numerics.Matrix3x2

* Feedback

* release notes
This commit is contained in:
eoineoineoin
2024-06-02 14:08:47 +10:00
committed by GitHub
parent 783d529ec4
commit 56c30edf04
71 changed files with 712 additions and 1637 deletions
@@ -367,7 +367,7 @@ namespace Robust.UnitTesting.Server.GameObjects.Components
public void TreeComposeWorldMatricesTest()
{
// Arrange
var control = Matrix3.Identity;
var control = Matrix3x2.Identity;
var node1 = EntityManager.SpawnEntity(null, InitialPos);
var node2 = EntityManager.SpawnEntity(null, InitialPos);
@@ -395,8 +395,8 @@ namespace Robust.UnitTesting.Server.GameObjects.Components
var worldMat = XformSystem.GetWorldMatrix(node4Trans);
var invWorldMat = XformSystem.GetInvWorldMatrix(node4Trans);
Matrix3.Multiply(in worldMat, in invWorldMat, out var leftVerifyMatrix);
Matrix3.Multiply(in invWorldMat, in worldMat, out var rightVerifyMatrix);
var leftVerifyMatrix = Matrix3x2.Multiply(worldMat, invWorldMat);
var rightVerifyMatrix = Matrix3x2.Multiply(invWorldMat, worldMat);
//Assert