Click or drag to resize
Pdftools logo

AffineTransformRotate Method

Rotate.

Rotations are produced by [cos(a) sin(a) -sin(a) cos(a) 0 0], which has the effect of rotating the coordinate system axes by an angle "a" in counterclockwise direction around the origin.

If the given center is not , then the rotation is performed around the given center point, which is equivalent to the following sequence:


Namespace: PdfTools.Toolbox.Geometry.Real
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public void Rotate(
	double angle,
	Point? center
)

Parameters

angle  Double
The angle of the rotation in degrees.
center  NullablePoint
The center of the rotation. If then the origin (0/0) is taken as center.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf the affine transform is singular, e.g. default initialized. (Use Identity as an initial value.)
See Also