LinearInterpolate Method (Single, Single, Single, Single, Single)

Project Mercury API

[This is preliminary documentation and is subject to change.]

Linearly interpolates between three values, where the position of the middle value is variable.

Namespace:  ProjectMercury
Assembly:  ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0

Syntax

C#
public static float LinearInterpolate(
	float value1,
	float value2,
	float value2Position,
	float value3,
	float amount
)
Visual Basic (Declaration)
Public Shared Function LinearInterpolate ( _
	value1 As Single, _
	value2 As Single, _
	value2Position As Single, _
	value3 As Single, _
	amount As Single _
) As Single
Visual C++
public:
static float LinearInterpolate(
	float value1, 
	float value2, 
	float value2Position, 
	float value3, 
	float amount
)

Parameters

value1
Type: System..::.Single
Source value.
value2
Type: System..::.Single
Source value.
value2Position
Type: System..::.Single
The position of the second source value between 0 and 1.
value3
Type: System..::.Single
Source value.
amount
Type: System..::.Single
Value between 0 and 1 indicating the position in the curve to evaluate.

Return Value

Interpolated value.

See Also