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
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om