[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.ClampRef

ClampRef Method

ClampRef(out Vector2, ref Vector2, ref Vector2, ref Vector2)

Restricts a vector between a minimum and a maximum value.

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