Optimize Matrix decomposition to use Matrix3x3 for rotation

This commit is contained in:
Wojtek Figat
2024-02-20 17:51:48 +01:00
parent 9e747eb98a
commit 8fa8eeb094
7 changed files with 83 additions and 16 deletions

View File

@@ -185,6 +185,23 @@ namespace FlaxEngine
M33 = values[8];
}
/// <summary>
/// Initializes a new instance of the <see cref="Matrix3x3" /> struct.
/// </summary>
/// <param name="m">The rotation/scale matrix.</param>
public Matrix3x3(Matrix m)
{
M11 = m.M11;
M12 = m.M12;
M13 = m.M13;
M21 = m.M21;
M22 = m.M22;
M23 = m.M23;
M31 = m.M31;
M32 = m.M32;
M33 = m.M33;
}
/// <summary>
/// Gets or sets the first row in the Matrix3x3; that is M11, M12, M13
/// </summary>