Scenic.Math.Vector2.div

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

div(vector2_a, vector2_b)

View Source

Specs

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

Divide a vector by a scalar.

Parameters:

  • vector2 - the vector
  • scalar - the scalar value

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