Single.Lerp(Single, Single, Single) 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.
Performs a linear interpolation between two values based on the given weight.
public:
static float Lerp(float value1, float value2, float amount) = System::Numerics::IFloatingPointIeee754<float>::Lerp;
public static float Lerp (float value1, float value2, float amount);
static member Lerp : single * single * single -> single
Public Shared Function Lerp (value1 As Single, value2 As Single, amount As Single) As Single
Parameters
- value1
- Single
The first value, which is intended to be the lower bound.
- value2
- Single
The second value, which is intended to be the upper bound.
- amount
- Single
A value, intended to be between 0 and 1, that indicates the weight of the interpolation.
Returns
The interpolated value.
Implements
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.