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