Matrix.CreateRotationZ Method (Single)
Returns a matrix that can be used to rotate a set of vertices around the z-axis.
Syntax
'Declaration
Public Shared Function CreateRotationZ ( _
radians As Single _
) As Matrix
public static Matrix CreateRotationZ (
float radians
)
public:
static Matrix CreateRotationZ(
float radians
)
Parameters
- radians
Type: Single
The amount, in radians, in which to rotate around the z-axis. Note that you can use ToRadians to convert degrees to radians.
Return Value
Type: Matrix
The rotation matrix.
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