예제 #1
0
 /// <summary>
 /// Rotates a rectangle around its center
 /// </summary>
 /// <param name="rectangle">The rectangle to apply the rotation</param>
 /// <param name="angle">The clockwise angle of the rotation</param>
 /// <returns>The minimum bounding rectangle (MBR) of the rotated rectangle</returns>
 public static RectangleF Rotate(RectangleF rectangle, float angle)
 {
     return(RectangleFHelper.RotateAt(rectangle, angle, RectangleFHelper.Center(rectangle)));
 }
예제 #2
0
 /// <summary>
 /// Rotates a rectangle around a coordinate
 /// </summary>
 /// <param name="rectangle">The rectangle to apply the rotation</param>
 /// <param name="angle">The clockwise angle of the rotation</param>
 /// <returns>The minimum bounding rectangle (MBR) of the rotated rectangle</returns>
 public static RectangleF RotateAt(RectangleF rectangle, Angle angle, PointF center)
 {
     return(RectangleFHelper.RotateAt(rectangle, (float)angle.DecimalDegrees, center));
 }
예제 #3
0
 /// <summary>
 /// Rotates a rectangle around its center
 /// </summary>
 /// <param name="rectangle">The rectangle to apply the rotation</param>
 /// <param name="angle">The clockwise angle of the rotation</param>
 /// <returns>The minimum bounding rectangle (MBR) of the rotated rectangle</returns>
 public static RectangleF Rotate(RectangleF rectangle, Angle angle)
 {
     return(RectangleFHelper.RotateAt(rectangle, (float)angle.DecimalDegrees, RectangleFHelper.Center(rectangle)));
 }