Matrix3x2.CreateRotation Method

Definition

Creates a rotation matrix.

Overloads

CreateRotation(Single)

Creates a rotation matrix using the given rotation in radians.

CreateRotation(Single, Vector2)

Creates a rotation matrix using the specified rotation in radians and a center point.

CreateRotation(Single)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a rotation matrix using the given rotation in radians.

C#
public static System.Numerics.Matrix3x2 CreateRotation(float radians);

Parameters

radians
Single

The amount of rotation, in radians.

Returns

The rotation matrix.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

CreateRotation(Single, Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

Creates a rotation matrix using the specified rotation in radians and a center point.

C#
public static System.Numerics.Matrix3x2 CreateRotation(float radians, System.Numerics.Vector2 centerPoint);

Parameters

radians
Single

The amount of rotation, in radians.

centerPoint
Vector2

The center point.

Returns

The rotation matrix.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0