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