Vector3.Lerp 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Lerp(Vector3, Vector3, Single) |
基于给定权重在两个向量之间执行线性内插。 |
Lerp(Vector3, Vector3, Vector3) |
Lerp(Vector3, Vector3, Single)
- Source:
- Vector3.cs
- Source:
- Vector3.cs
- Source:
- Vector3.cs
基于给定权重在两个向量之间执行线性内插。
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
参数
- value1
- Vector3
第一个向量。
- value2
- Vector3
第二个向量。
- amount
- Single
一个介于 0 与 1 之间的值,指示 value2
的权重。
返回
内插的向量。
适用于
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
参数
- value1
- Vector3
- value2
- Vector3
- amount
- Vector3