Clamp function, clamps an integer value into the range [min..max]

Namespace: VVVV.Utils.VMath
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
public static int Clamp(
	int x,
	int min,
	int max
)

Parameters

x
Type: System..::..Int32

[Missing <param name="x"/> documentation for "M:VVVV.Utils.VMath.VMath.Clamp(System.Int32,System.Int32,System.Int32)"]

min
Type: System..::..Int32

[Missing <param name="min"/> documentation for "M:VVVV.Utils.VMath.VMath.Clamp(System.Int32,System.Int32,System.Int32)"]

max
Type: System..::..Int32

[Missing <param name="max"/> documentation for "M:VVVV.Utils.VMath.VMath.Clamp(System.Int32,System.Int32,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:VVVV.Utils.VMath.VMath.Clamp(System.Int32,System.Int32,System.Int32)"]

See Also