Share via


Matrix.CreateRotationX Method (Single)

Returns an x-axis rotation matrix.

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

Syntax

public static Matrix CreateRotationX (
         float radians
)

Parameters

  • radians
    The rotation in radians.

Return Value

The rotation matrix.

See Also

Reference

Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Transform a Point with a Matrix
How to: Rotate and Move a Camera
How to: Make a First-Person Camera
How to: Make a Third-Person Camera

Platforms

Xbox 360, Windows XP SP2, Windows Vista