From 6e600b108f6d18202b05c8a1a697c50b12328146 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 4 May 2022 09:47:10 -0700 Subject: [PATCH] rename --- src/Math/Fixed/{FixMatrix3x2.cs => Matrix3x2.cs} | 12 ++++++++++++ src/Math/Fixed/{FixMatrix4x4.cs => Matrix4x4.cs} | 0 2 files changed, 12 insertions(+) rename src/Math/Fixed/{FixMatrix3x2.cs => Matrix3x2.cs} (98%) rename src/Math/Fixed/{FixMatrix4x4.cs => Matrix4x4.cs} (100%) diff --git a/src/Math/Fixed/FixMatrix3x2.cs b/src/Math/Fixed/Matrix3x2.cs similarity index 98% rename from src/Math/Fixed/FixMatrix3x2.cs rename to src/Math/Fixed/Matrix3x2.cs index 83fb906..2ff7db9 100644 --- a/src/Math/Fixed/FixMatrix3x2.cs +++ b/src/Math/Fixed/Matrix3x2.cs @@ -781,6 +781,18 @@ namespace MoonWorks.Math.Fixed value1.M31 != value2.M31 || value1.M32 != value2.M32); } + /// + /// Casts to floating point Matrix3x2. + /// + public static explicit operator Math.Matrix3x2(Matrix3x2 matrix) + { + return new Math.Matrix3x2( + (float) matrix.M11, (float) matrix.M12, + (float) matrix.M21, (float) matrix.M22, + (float) matrix.M31, (float) matrix.M32 + ); + } + /// /// Returns a boolean indicating whether the matrix is equal to the other given matrix. /// diff --git a/src/Math/Fixed/FixMatrix4x4.cs b/src/Math/Fixed/Matrix4x4.cs similarity index 100% rename from src/Math/Fixed/FixMatrix4x4.cs rename to src/Math/Fixed/Matrix4x4.cs