IFloatingPointIeee754<TSelf>.Lerp(TSelf, TSelf, TSelf) Metodo

Definizione

Esegue un'interpolazione lineare tra due valori in base al peso specificato.

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

Parametri

value1
TSelf

Primo valore, che deve essere il limite inferiore.

value2
TSelf

Secondo valore, che deve essere il limite superiore.

amount
TSelf

Valore, destinato a essere compreso tra 0 e 1, che indica il peso dell'interpolazione.

Restituisce

TSelf

Valore interpolato.

Commenti

Questo metodo presuppone che gli input siano ben formati e non convaliderà che value1 < value2 né .0 <= amount <= 1

Si applica a