Scenic.Math.Vector2.lerp

You're seeing just the function lerp, go back to Scenic.Math.Vector2 module for more information.
Link to this function

lerp(vector_a, vector_a, t)

View Source

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 vector
  • vector_b - the second vector
  • t - the "t" value (see link above). Must be between 0 and 1.

Returns: A vector, which is the result of the lerp.