예제 #1
0
 /// <summary>
 /// Appends a rotation matrix using the given rotation angle in radians
 /// and the image center point as rotation center.
 /// </summary>
 /// <param name="radians">The amount of rotation, in radians.</param>
 /// <returns>The <see cref="AffineTransformBuilder"/>.</returns>
 public AffineTransformBuilder AppendRotationRadians(float radians)
 => this.Append(size => TransformUtils.CreateRotationMatrixRadians(radians, size));
 /// <summary>
 /// Appends a centered rotation matrix using the given rotation in radians.
 /// </summary>
 /// <param name="radians">The amount of rotation, in radians.</param>
 /// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
 public ProjectiveTransformBuilder AppendRotationRadians(float radians)
 => this.Append(size => new Matrix4x4(TransformUtils.CreateRotationMatrixRadians(radians, size)));