ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / Vector2 Structure / ClampRef Method
When the method completes, contains an the restricted vector.
The vector to restrict.
The minimum value.
The maximum value.

In This Topic
    ClampRef Method (Vector2)
    In This Topic
    Restricts a vector between a minimum and a maximum value.
    Syntax
    'Declaration
     
    Public Shared Sub ClampRef( _
       ByRef result As Vector2, _
       ByRef value As Vector2, _
       ByRef min As Vector2, _
       ByRef max As Vector2 _
    ) 
    public static void ClampRef( 
       out Vector2 result,
       ref Vector2 value,
       ref Vector2 min,
       ref Vector2 max
    )

    Parameters

    result
    When the method completes, contains an the restricted vector.
    value
    The vector to restrict.
    min
    The minimum value.
    max
    The maximum value.
    See Also