Skip to content

Math.Lerp

Name Mandatory Description Default Type
⬅️ Input The factor to interpolate between the start and end values. Float
Output ➡️ The interpolated value between the start and end values based on the factor provided as input. IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any]
First No The start value none IntVar(Int)Int2Var(Int2)Int3Var(Int3)Int4Var(Int4)Int8Var(Int8)Int16Var(Int16)FloatVar(Float)Float2Var(Float2)Float3Var(Float3)Float4Var(Float4)ColorVar(Color)
Second No The end value none IntVar(Int)Int2Var(Int2)Int3Var(Int3)Int4Var(Int4)Int8Var(Int8)Int16Var(Int16)FloatVar(Float)Float2Var(Float2)Float3Var(Float3)Float4Var(Float4)ColorVar(Color)

Linearly interpolate between the start value specified in the First parameter and the end value specified in the Second parameter based on the factor provided as input.