IFloatingPointIeee754<TSelf>.Lerp(TSelf, TSelf, TSelf) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a linear interpolation between two values based on the given weight.
public:
static override TSelf Lerp(TSelf value1, TSelf value2, TSelf amount);
public static virtual TSelf Lerp (TSelf value1, TSelf value2, TSelf amount);
static member Lerp : 'Self * 'Self * 'Self -> 'Self
Public Shared Overrides Function Lerp (value1 As TSelf, value2 As TSelf, amount As TSelf) As TSelf
Parameters
- value1
- TSelf
The first value, which is intended to be the lower bound.
- value2
- TSelf
The second value, which is intended to be the upper bound.
- amount
- TSelf
A value, intended to be between 0 and 1, that indicates the weight of the interpolation.
Returns
The interpolated value.
Remarks
This method presumes inputs are well formed and does not validate that value1 < value2
nor that 0 <= amount <= 1
.