Scenic.Math.Vector2.mul

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

mul(vector2_a, vector2_b)

View Source

Specs

mul(vector2 :: Scenic.Math.vector_2(), scalar :: number()) ::
  Scenic.Math.vector_2()

Multiply a vector by a scalar.

Parameters:

  • vector2 - the vector
  • scalar - the scalar value

Returns: A new vector which is the result of the multiplication