Exemplo n.º 1
0
 /// <summary>
 /// Creates a path rotated by the specified degrees around its center.
 /// </summary>
 /// <param name="shape">The path to rotate.</param>
 /// <param name="degrees">The degrees to rotate the path.</param>
 /// <returns>A <see cref="IPath"/> with a rotate transform applied.</returns>
 public static IPathCollection RotateDegree(this IPathCollection shape, float degrees)
 {
     return(shape.Rotate((float)(Math.PI * degrees / 180.0)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a path rotated by the specified degrees around its center.
 /// </summary>
 /// <param name="shape">The path to rotate.</param>
 /// <param name="degree">The degree to rotate the path.</param>
 /// <returns>A <see cref="IPath"/> with a rotate transform applied.</returns>
 public static IPathCollection RotateDegree(this IPathCollection shape, float degree)
 => shape.Rotate(GeometryUtilities.DegreeToRadian(degree));