Vector3.Lerp(Vector3, Vector3, Single) Metoda

Definice

Provede lineární interpolaci mezi dvěma vektory na základě dané váhy.

public:
 static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, float amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, float amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * single -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Single) As Vector3

Parametry

value1
Vector3

První vektor.

value2
Vector3

Druhý vektor.

amount
Single

Hodnota mezi 0 a 1, která označuje váhu hodnoty value2.

Návraty

Interpolovaný vektor.

Platí pro