Double.Lerp(Double, Double, Double) 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 double Lerp(double value1, double value2, double amount) = System::Numerics::IFloatingPointIeee754<double>::Lerp;
public static double Lerp (double value1, double value2, double amount);
static member Lerp : double * double * double -> double
Public Shared Function Lerp (value1 As Double, value2 As Double, amount As Double) As Double
Parameters
- value1
- Double
The first value, which is intended to be the lower bound.
- value2
- Double
The second value, which is intended to be the upper bound.
- amount
- Double
A value, intended to be between 0 and 1, that indicates the weight of the interpolation.
Returns
The interpolated value.
Implements
Applies to
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for