Vector4.Lerp(Vector4, Vector4, Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于给定权重在两个向量之间执行线性内插。
public:
static System::Numerics::Vector4 Lerp(System::Numerics::Vector4 value1, System::Numerics::Vector4 value2, float amount);
public static System.Numerics.Vector4 Lerp (System.Numerics.Vector4 value1, System.Numerics.Vector4 value2, float amount);
static member Lerp : System.Numerics.Vector4 * System.Numerics.Vector4 * single -> System.Numerics.Vector4
Public Shared Function Lerp (value1 As Vector4, value2 As Vector4, amount As Single) As Vector4
参数
- value1
- Vector4
第一个向量。
- value2
- Vector4
第二个向量。
- amount
- Single
一个介于 0 与 1 之间的值,指示 value2
的权重。
返回
内插的向量。
注解
此方法的行为在 .NET 5 中已更改。 有关详细信息,请参阅 Vector2.Lerp 和 Vector4.Lerp 的行为更改。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈