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