Vector.Lerp 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.
Overloads
Lerp(Vector<Double>, Vector<Double>, Vector<Double>) |
Performs a linear interpolation between two vectors based on the given weighting. |
Lerp(Vector<Single>, Vector<Single>, Vector<Single>) |
Performs a linear interpolation between two vectors based on the given weighting. |
Lerp(Vector<Double>, Vector<Double>, Vector<Double>)
Performs a linear interpolation between two vectors based on the given weighting.
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)
Parameters
Returns
The interpolated vector.
Applies to
Lerp(Vector<Single>, Vector<Single>, Vector<Single>)
Performs a linear interpolation between two vectors based on the given weighting.
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)
Parameters
Returns
The interpolated vector.