Sdílet prostřednictvím


Matrix.CreateRotationY Method (Single, Matrix)

Populates data into a user-specified matrix that can be used to rotate a set of vertices around the y-axis.

Syntax

'Declaration
Public Shared Sub CreateRotationY ( _
         radians As Single, _
         out result As Matrix _
)
public static void CreateRotationY (
         float radians,
         out Matrix result
)
public:
static void CreateRotationY(
         float radians,
         out Matrix result
)

Parameters

  • radians
    Type: Single
    The amount, in radians, in which to rotate around the y-axis. Note that you can use ToRadians to convert degrees to radians.
  • result
    Type: Matrix
    [OutAttribute] The matrix in which to place the calculated data.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone