Nevron Open Vision Documentation
Nevron.Nov Namespace / NMathF Class / Clamp Method / Clamp(Single,Single,Single) Method


In This Topic
    Clamp(Single,Single,Single) Method
    In This Topic
    Clamps the value to the [min;max] range.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Clamp( _
       ByVal min As System.Single, _
       ByVal max As System.Single, _
       ByVal value As System.Single _
    ) As System.Single
    'Usage
     
    
    Dim min As System.Single
    Dim max As System.Single
    Dim value As System.Single
    Dim value As System.Single
     
    value = NMathF.Clamp(min, max, value)
    public static System.float Clamp( 
       System.float min,
       System.float max,
       System.float value
    )

    Parameters

    min
    max
    value
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also