# Graphics3DControl.HitTest method

Searches the scene for the model and mesh located under the given point.

**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 RaycastHitTestResult? HitTest(Point position)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| position | `Point` | The point in the coordinate system of the control. |

## Returns

| type | description |
| --- | --- |
| [`RaycastHitTestResult?`](../RaycastHitTestResult.md) | The nearest model and mesh under the point, or null if the point is over empty space. |

## See Also

* struct [RaycastHitTestResult](../RaycastHitTestResult.md)
* class [Graphics3DControl](../Graphics3DControl.md)
* namespace [Eremex.AvaloniaUI.Controls3D](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls3D.dll -->
