Namespace: DeltaEngine.ExtensionsAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public static float Clamp(
this float value,
float min,
float max
)
public static float Clamp(
this float value,
float min,
float max
)
<ExtensionAttribute>
Public Shared Function Clamp (
value As Single,
min As Single,
max As Single
) As Single
<ExtensionAttribute>
Public Shared Function Clamp (
value As Single,
min As Single,
max As Single
) As Single
public:
[ExtensionAttribute]
static float Clamp(
float value,
float min,
float max
)
public:
[ExtensionAttribute]
static float Clamp(
float value,
float min,
float max
)
static member Clamp :
value : float32 *
min : float32 *
max : float32 -> float32
static member Clamp :
value : float32 *
min : float32 *
max : float32 -> float32
Return Value
Type:
SingleUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Single. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).