Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / Vector4 Structure / Clamp Method
The vector to restrict.
The minimum value.
The maximum value.

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

    Parameters

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

    Return Value

    The restricted vector.
    See Also