# ClosestPoint

> The closest point on the bounding box.

## Definition

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

## ClosestPoint(Vector3)

The closest point on the bounding box.

```csharp
public readonly Vector3 ClosestPoint(Vector3 point)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): Arbitrary point.

### Returns

| Type                                                              | Description                                               |
| ----------------------------------------------------------------- | --------------------------------------------------------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) | The point on the bounding box or inside the bounding box. |

### Remarks

If the point is inside the bounding box, unmodified point position will be returned.

## ClosestPoint(Vector3)

The closest point on the bounding box.

```csharp
public readonly Vector3 ClosestPoint(in Vector3 point)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): Arbitrary point.

### Returns

| Type                                                              | Description                                               |
| ----------------------------------------------------------------- | --------------------------------------------------------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) | The point on the bounding box or inside the bounding box. |

### Remarks

If the point is inside the bounding box, unmodified point position will be returned.
