ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX Namespace / Vector2 Structure / Clamp Method
The vector to restrict.
The minimum value.
The maximum value.

In This Topic
    Clamp Method (Vector2)
    In This Topic
    Restricts a vector between a minimum and a maximum value.
    Syntax
    'Declaration
     
    Public Shared Function Clamp( _
       ByVal value As Vector2, _
       ByVal min As Vector2, _
       ByVal max As Vector2 _
    ) As Vector2
    public static Vector2 Clamp( 
       Vector2 value,
       Vector2 min,
       Vector2 max
    )

    Parameters

    value
    The vector to restrict.
    min
    The minimum value.
    max
    The maximum value.

    Return Value

    The restricted vector.
    See Also