Lerp

Math
दोनों तरफ
क्राफ्टलैंड स्टूडियो मोबाइल और पीसी दोनों पर उपलब्ध है

Linear interpolation, returns the value corresponding to the interpolation progress between the start value and the target value, the interpolation coefficient is [0,1]

डिक्लेरेशन

func Lerp(valueA float, valueB float, valueT float) float
go

पैरामीटर्स

इनपुट

नाम टाइप विवरण
ValueA Float The starting value of linear interpolation. This value is returned when the interpolation progress is 0
ValueB Float The target value of linear interpolation. This value is returned when the interpolation progress is 1
ValueT Float Interpolation progress, the value range is [0,1]. When the value is 0, it returns the start value, when the value is 1, it returns the target value, and when the value is 0.5, it returns the average of the start value and the target value.

वापस

टाइप विवरण
Float Linear interpolation return value