Matrix translationMatrix = Matrix.CreateTranslation(new Vector3(10, 0, 0));
Matrix rotationMatrix = Matrix.CreateRotationY(MathHelper.ToRadians(45));This code creates a 4x4 matrix that rotates an object by 45 degrees around the y axis. The Microsoft.Xna.Framework.Matrix class is part of the XNA Framework, which is a set of libraries and tools for game development on the Microsoft Xbox, Windows, and Windows Phone platforms.