static public Matrix4 Multiply(Matrix4 Left, Matrix4 Right) { var New = Matrix4.Identity; for (int Column = 0; Column < 4; Column++) { for (int Row = 0; Row < 4; Row++) { float Dot = 0; for (int Index = 0; Index < 4; Index++) Dot += Left[Row, Index] * Right[Index, Column]; New[Row, Column] = Dot; } } return New; }
public void SetMatrix4(Matrix4 Matrix) { SetMatrix4((float *)&Matrix.Row0); }