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

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

    Parameters

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

    Return Value

    The restricted vector.
    See Also