double scaleX = 2.0; double scaleY = 3.0; double scaleZ = 4.0; var transformMatrix = MatrixD.CreateFromTransformScale(scaleX, scaleY, scaleZ);
double scaleX = 2.0; double scaleY = 3.0; double scaleZ = 4.0; var translationVector = new Vector3D(5.0, 6.0, 7.0); var rotationQuaternion = new QuaternionD(0.0, 1.0, 0.0, 0.0); var transformMatrix = MatrixD.CreateFromTransformScale(scaleX, scaleY, scaleZ); transformMatrix.Translate(translationVector); transformMatrix.Rotate(rotationQuaternion);This example creates a new MatrixD object and then applies translation and rotation transformations to it. These examples are likely using the MathNet.Numerics.LinearAlgebra package library.