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.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
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