Half.Lerp(Half, Half, Half) 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 Half Lerp(Half value1, Half value2, Half amount) = System::Numerics::IFloatingPointIeee754<Half>::Lerp;
public static Half Lerp (Half value1, Half value2, Half amount);
static member Lerp : Half * Half * Half -> Half
Public Shared Function Lerp (value1 As Half, value2 As Half, amount As Half) As Half
Parameters
- value1
- Half
The first value, which is intended to be the lower bound.
- value2
- Half
The second value, which is intended to be the upper bound.
- amount
- Half
A value, intended to be between 0 and 1, that indicates the weight of the interpolation.
Returns
The interpolated value.
Implements
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.