Vector.Lerp Metod

Definition

Överlagringar

Name Description
Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

Utför en linjär interpolering mellan två vektorer baserat på den angivna viktningen.

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

Utför en linjär interpolering mellan två vektorer baserat på den angivna viktningen.

Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

Källa:
Vector.cs
Källa:
Vector.cs
Källa:
Vector.cs

Utför en linjär interpolering mellan två vektorer baserat på den angivna viktningen.

public:
 static System::Numerics::Vector<double> Lerp(System::Numerics::Vector<double> x, System::Numerics::Vector<double> y, System::Numerics::Vector<double> amount);
public static System.Numerics.Vector<double> Lerp(System.Numerics.Vector<double> x, System.Numerics.Vector<double> y, System.Numerics.Vector<double> amount);
static member Lerp : System.Numerics.Vector<double> * System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<double>
Public Function Lerp (x As Vector(Of Double), y As Vector(Of Double), amount As Vector(Of Double)) As Vector(Of Double)

Parametrar

x
Vector<Double>

Den första vektorn.

y
Vector<Double>

Den andra vektorn.

amount
Vector<Double>

Ett värde mellan 0 och 1 som anger vikten för y.

Returer

Den interpolerade vektorn.

Gäller för

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

Källa:
Vector.cs
Källa:
Vector.cs
Källa:
Vector.cs

Utför en linjär interpolering mellan två vektorer baserat på den angivna viktningen.

public:
 static System::Numerics::Vector<float> Lerp(System::Numerics::Vector<float> x, System::Numerics::Vector<float> y, System::Numerics::Vector<float> amount);
public static System.Numerics.Vector<float> Lerp(System.Numerics.Vector<float> x, System.Numerics.Vector<float> y, System.Numerics.Vector<float> amount);
static member Lerp : System.Numerics.Vector<single> * System.Numerics.Vector<single> * System.Numerics.Vector<single> -> System.Numerics.Vector<single>
Public Function Lerp (x As Vector(Of Single), y As Vector(Of Single), amount As Vector(Of Single)) As Vector(Of Single)

Parametrar

x
Vector<Single>

Den första vektorn.

y
Vector<Single>

Den andra vektorn.

amount
Vector<Single>

Ett värde mellan 0 och 1 som anger vikten för y.

Returer

Den interpolerade vektorn.

Gäller för