Click or drag to resize

imbValueChangersmoveInRange Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Moves the in range.

Namespace:  imbSCI.Core.extensions.math
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static int moveInRange(
	this int input,
	int step,
	int max,
	int min = 0,
	bool doLoop = true
)
Request Example View Source

Parameters

input
Type: SystemInt32
The input.
step
Type: SystemInt32
The step.
max
Type: SystemInt32
The maximum.
min (Optional)
Type: SystemInt32
The minimum.
doLoop (Optional)
Type: SystemBoolean
if set to true [do loop].

Return Value

Type: Int32

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. 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).
See Also