# Graphics3DControl.LookCameraAtScene method (1 of 2)

Moves the camera to a predefined view of the scene and places it at a distance that fits the scene into the control.

**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 LookCameraAtScene(CameraPosition cameraPosition)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| cameraPosition | [`CameraPosition`](../CameraPosition.md) | The predefined view that the camera takes. |

## See Also

* enum [CameraPosition](../CameraPosition.md)
* class [Graphics3DControl](../Graphics3DControl.md)
* namespace [Eremex.AvaloniaUI.Controls3D](../index.md)

---

# Graphics3DControl.LookCameraAtScene method (2 of 2)

Moves the camera to the given view of the scene and places it at a distance that fits the scene into the control.

**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 LookCameraAtScene(Vector3 cameraViewDirection, Vector3 upDirection)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| cameraViewDirection | `Vector3` | The direction that the camera looks in. |
| upDirection | `Vector3` | The up direction of the camera. |

## See Also

* class [Graphics3DControl](../Graphics3DControl.md)
* namespace [Eremex.AvaloniaUI.Controls3D](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls3D.dll -->
