---
title: "Matrix..::.Rotate Method (Single, MatrixOrder)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_Rotate_2_106bd46a.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Matrix.Rotate Method (Single, MatrixOrder)
 
Applies a rotate affine transform to the matrix.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Rotate ( _angle As Single, _order As MatrixOrder _
)
```
 
```csharp
public void Rotate(float angle,MatrixOrder order
)
```
 
### Parameters
 
 - angle
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The angle of the rotation (in degrees).

 - order
     - Type: [System.Drawing.Drawing2D.MatrixOrder](http://msdn2.microsoft.com/en-us/aw34t360)
The order of the matrices in the multiplication operation.
 
## Remarks
  
The clockwise rotation is applied. Use negative angle value to rotate counter-clockwise.
 
The rotation is applied around the point of origin. To rotate around an arbitrary point, use the [RotateAt(Single, PointF)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_RotateAt_2_222fde3b.htm.md) method.
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Rotate Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Matrix_Rotate.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
- [Matrix.Multiply(Matrix, MatrixOrder)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_Multiply_2_5d78265a.htm.md)
- [Matrix.RotateAt(Single, PointF, MatrixOrder)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_RotateAt_3_2e4163b7.htm.md)
- [Matrix.Scale(Single, Single, MatrixOrder)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_Scale_3_2421af4d.htm.md)
- [Matrix.Translate(Single, Single, MatrixOrder)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_Translate_3_2421af4d.htm.md)
