GeometryUtilConvertRange Method

Convert a value from one range to another.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2414.4032
C#
public static float ConvertRange(
	float sourceStart,
	float sourceEnd,
	float targetStart,
	float targetEnd,
	float value
)

Parameters

sourceStart  Single
The starting value of the source range.
sourceEnd  Single
The ending value of the source range.
targetStart  Single
The starting value of the target range.
targetEnd  Single
The ending value of the target range.
value  Single
The value to convert.

Return Value

Single
The representation of the caller's source value in the target range.

See Also