/// <summary> /// Sets the actively selected matrix in the <see cref="InputsViewModel"/> to the given matrix /// </summary> /// <param name="mat"></param> public void SetMatrixAsSelected(Matrix4ViewModel mat) { if (Inputs.IsMatrixSelected) { Inputs.SelectedMatrix.Set(mat.GetMatrix()); } }
public static Matrix4ViewModel RotateZ(Matrix4ViewModel a, Vector3ViewModel b) { Matrix4 rot = a.GetMatrix() * Matrix4.RotateZ(b.Z); return(new Matrix4ViewModel(rot)); }
public static Matrix4ViewModel MultiplyMatrixByMatrix(Matrix4ViewModel a, Matrix4ViewModel m) { return(new Matrix4ViewModel(a.GetMatrix() * m.GetMatrix())); }