Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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

TSelf

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

Was this page helpful?