[]
Restricts a vector between a minimum and a maximum value.
public static void ClampRef(out Vector3 result, ref Vector3 value, ref Vector3 min, ref Vector3 max)
Public Shared Sub ClampRef(ByRef result As Vector3, ByRef value As Vector3, ByRef min As Vector3, ByRef max As Vector3)
| Type | Name | Description |
|---|---|---|
| Vector3 | result | When the method completes, contains an the restricted vector. |
| Vector3 | value | The vector to restrict. |
| Vector3 | min | The minimum value. |
| Vector3 | max | The maximum value. |