Click or drag to resize

numberRangerangeChange Method (Single, Single, Single, numberRangeModifyRule, String)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Održava vrednost u zadatom rasponu

Namespace:  imbSCI.Core.math.range
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static float rangeChange(
	this float old,
	float delta,
	float max,
	numberRangeModifyRule rule,
	string op = "+"
)
Request Example View Source

Parameters

old
Type: SystemSingle
Postojeća vrednost
delta
Type: SystemSingle
Razlika kojom pravimo korekciju
max
Type: SystemSingle
Maksimalna vrednost
rule
Type: imbSCI.Core.math.rangenumberRangeModifyRule
Pravilo kojim menjamo vrednost
op (Optional)
Type: SystemString
Operator koji se primenjuje

Return Value

Type: Single
Broj koji je sigurno u rasponu

Usage 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).
See Also

Reference

[!:aceCommonTypes.extensions.imbValueChangers.checkRange(int,int,int,bool)]