Click or drag to resize

MathHelperMap Method

Returns what a value would map down to if its minimum and maximum values are changed.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static float Map(
	float value,
	float inMin,
	float inMax,
	float outMin,
	float outMax
)
Request Example View Source

Parameters

value
Type: SystemSingle
The value to map.
inMin
Type: SystemSingle
The input minimum value.
inMax
Type: SystemSingle
The input maximum value.
outMin
Type: SystemSingle
The output minimum value.
outMax
Type: SystemSingle
The output maximum value.

Return Value

Type: Single
See Also