







![]() ![]() |
Project Mercury API Reference |
Calculator..::.LinearInterpolate Method (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 float LinearInterpolate( float value1, float value2, float amount ) |
Visual Basic (Declaration) |
---|
Public Shared Function LinearInterpolate ( _ value1 As Single, _ value2 As Single, _ amount As Single _ ) As Single |
Visual C++ |
---|
public: static float LinearInterpolate( float value1, float value2, float amount ) |
Parameters
- 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.