Scenic.Math.Vector2.lerp
You're seeing just the function
lerp
, go back to Scenic.Math.Vector2 module for more information.
Specs
lerp( vector_a :: Scenic.Math.vector_2(), vector_b :: Scenic.Math.vector_2(), t :: number() ) :: Scenic.Math.vector_2()
Calculate the lerp of two vectors.
See This explanation for more info.
Parameters:
vector_a
- the first vectorvector_b
- the second vectort
- the "t" value (see link above). Must be between 0 and 1.
Returns: A vector, which is the result of the lerp.