
## rotate {#float}

Rotates the matrix by the specified angle.



```python
def rotate(self, angle):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| angle | float | The angle of rotation in degrees. |


## rotate {#float-aspose.html.drawing.WebMatrixOrder}

Rotates the matrix by the specified angle in the specified order.



```python
def rotate(self, angle, order):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| angle | float | The angle of rotation in degrees. |
| order | [`WebMatrixOrder`](/html/python-net/aspose.html.drawing/webmatrixorder) | The order in which rotation is applied. |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix)
