Method ClosestPoint
ClosestPoint(float3)
Returns the closest point on the bounds of the AABB to the specified position.
Declaration
public float3 ClosestPoint(float3 position)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | position | A target point in space. |
Returns
| Type | Description |
|---|---|
| float3 | The closest point. |