pull/19/head
cosmonaut 2022-05-04 09:47:10 -07:00
parent 778e69d145
commit 6e600b108f
2 changed files with 12 additions and 0 deletions

View File

@ -781,6 +781,18 @@ namespace MoonWorks.Math.Fixed
value1.M31 != value2.M31 || value1.M32 != value2.M32); value1.M31 != value2.M31 || value1.M32 != value2.M32);
} }
/// <summary>
/// Casts to floating point Matrix3x2.
/// </summary>
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
);
}
/// <summary> /// <summary>
/// Returns a boolean indicating whether the matrix is equal to the other given matrix. /// Returns a boolean indicating whether the matrix is equal to the other given matrix.
/// </summary> /// </summary>