TransformationMatrixCreateRotation(Single, Vector2) Method
Creates a rotation matrix using the specified angle and center point.
Namespace: KGySoft.Drawing.ShapesAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static TransformationMatrix CreateRotation(
float radians,
Vector2 centerPoint
)
Public Shared Function CreateRotation (
radians As Single,
centerPoint As Vector2
) As TransformationMatrix
public:
static TransformationMatrix CreateRotation(
float radians,
Vector2 centerPoint
)
static member CreateRotation :
radians : float32 *
centerPoint : Vector2 -> TransformationMatrix
- radians Single
- The angle, in radians, by which to rotate the matrix.
- centerPoint Vector2
- The center point of the rotation.
TransformationMatrixThe rotation matrix.