Export (0) Print
Expand All

Matrix.CreateRotationX Method (Single)

Returns a matrix that can be used to rotate a set of vertices around the x-axis.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static Matrix CreateRotationX (
         float radians


Type: Single
The amount, in radians, in which to rotate around the x-axis. Note that you can use ToRadians to convert degrees to radians.

Return Value

The rotation matrix.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

© 2015 Microsoft