[]
        
(Showing Draft Content)

C1.Util.DX.Vector3.ClampRef

ClampRef Method

ClampRef(out Vector3, ref Vector3, ref Vector3, ref Vector3)

Restricts a vector between a minimum and a maximum value.

Declaration
public static void ClampRef(out Vector3 result, ref Vector3 value, ref Vector3 min, ref Vector3 max)
Parameters
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.