







|
| Project Mercury API Reference |
| Calculator..::.LinearInterpolate Method (Single%, Single, Single, Single) |
| Calculator Class See Also Send Feedback |
[This is preliminary documentation and is subject to change.]
Linearly interpolates between two values.
Namespace:
ProjectMercury
Assembly:
ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0
Syntax
| C# |
|---|
public static void LinearInterpolate( ref float value, float value1, float value2, float amount ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub LinearInterpolate ( _ ByRef value As Single, _ value1 As Single, _ value2 As Single, _ amount As Single _ ) |
| Visual C++ |
|---|
public: static void LinearInterpolate( float% value, float value1, float value2, float amount ) |
Parameters
- value
- Type:
System..::.Single
%
The output value.
- value1
- Type: System..::.Single
Source value.
- value2
- Type: System..::.Single
Source value.
- amount
- Type: System..::.Single
Value between 0 and 1 indicating the weight of value2.
