Click or drag to resize

MathHelperClamp Method (Int32, Int32, Int32)

Clamp the specified int 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 int Clamp(
	int v,
	int min,
	int max
)

Parameters

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

Return Value

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

Lumiscaphe Workshop SDK

Supported in: 7.0 release 1
See Also