Scenic.Math.Vector2.nlerp

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

nlerp(vector_a, vector_a, t)

View Source

Specs

nlerp(
  vector_a :: Scenic.Math.vector_2(),
  vector_b :: Scenic.Math.vector_2(),
  t :: number()
) :: Scenic.Math.vector_2()

Calculate the nlerp (normalized 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 nlerp.