Click or drag to resize

MathHelperClamp Method (Single, Single, Single)

Clamp the specified float value v between min and max.

Namespace:  Lumiscaphe.Workshop.Interop
Assembly:  Lumiscaphe.Workshop.Interop (in Lumiscaphe.Workshop.Interop.dll) Version: 21.1.16.0
Syntax
public static float Clamp(
	float v,
	float min,
	float max
)

Parameters

v
Type: SystemSingle
The value to clamp
min
Type: SystemSingle
The lower end of the range into which to constrain v.
max
Type: SystemSingle
The upper end of the range into which to constrain v.

Return Value

Type: Single
The value of v constrained to the range min to max.
Version Information

Lumiscaphe Workshop SDK

Supported in: 7.0 release 1
See Also