# SqrDistance

> The smallest squared distance between the point and this bounding box.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## SqrDistance(Vector3)

The smallest squared distance between the point and this bounding box.

```csharp
public readonly float SqrDistance(Vector3 point)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

## SqrDistance(Vector3)

The smallest squared distance between the point and this bounding box.

```csharp
public readonly float SqrDistance(in Vector3 point)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |
