[]
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)
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. |