# Camera.Rotate method

Orbits the camera around its target, keeping the distance to the target unchanged.

**Namespace:** [`Eremex.AvaloniaUI.Controls3D`](../index.md)  
**Assembly:** `Eremex.Avalonia.Controls3D.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls3D](https://www.nuget.org/packages/Eremex.Avalonia.Controls3D)

## Declaration

```csharp
public void Rotate(float xRad, float yRad)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| xRad | `float` | The angle of the rotation around the camera's rightward axis, in radians. |
| yRad | `float` | The angle of the rotation around the camera's upward axis, in radians. |

## See Also

* class [Camera](../Camera.md)
* namespace [Eremex.AvaloniaUI.Controls3D](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls3D.dll -->
