Vector3.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(Vector3, Vector3, Single) |
Performs a linear interpolation between two vectors based on the given weighting. |
Lerp(Vector3, Vector3, Vector3) |
Lerp(Vector3, Vector3, Single)
- Source:
- Vector3.cs
- Source:
- Vector3.cs
- Source:
- Vector3.cs
Performs a linear interpolation between two vectors based on the given weighting.
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
Parameters
- value1
- Vector3
The first vector.
- value2
- Vector3
The second vector.
- amount
- Single
A value between 0 and 1 that indicates the weight of value2
.
Returns
The interpolated vector.
Applies to
Lerp(Vector3, Vector3, Vector3)
public:
static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, System::Numerics::Vector3 amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, System.Numerics.Vector3 amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Vector3) As Vector3
Parameters
- value1
- Vector3
- value2
- Vector3
- amount
- Vector3
Returns
Applies to
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.