Edit

Share via


Half.Lerp(Half, Half, Half) Method

Definition

Performs a linear interpolation between two values based on the given weight.

C#
public static Half Lerp(Half value1, Half value2, Half amount);

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

Product Versions
.NET 8, 9