[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Matrix.CreateRotation

CreateRotation Method

CreateRotation(double)

Creates a rotation matrix.

Declaration
public static Matrix CreateRotation(double radians)
Public Shared Function CreateRotation(radians As Double) As Matrix
Parameters
Type Name Description
double radians

Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis.

Returns
Type Description
Matrix

The rotation matrix.

CreateRotation(double, PointF)

Creates a rotation matrix.

Declaration
public static Matrix CreateRotation(double radians, PointF centerPoint)
Public Shared Function CreateRotation(radians As Double, centerPoint As PointF) As Matrix
Parameters
Type Name Description
double radians

Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis.

PointF centerPoint

The center offset.

Returns
Type Description
Matrix

The rotation matrix.

CreateRotation(double, double, double)

Creates a rotation matrix.

Declaration
public static Matrix CreateRotation(double radians, double cx, double cy)
Public Shared Function CreateRotation(radians As Double, cx As Double, cy As Double) As Matrix
Parameters
Type Name Description
double radians

Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis.

double cx

X-coordinate of the center offset.

double cy

Y-coordinate of the center offset.

Returns
Type Description
Matrix

The rotation matrix.