Scenic.Math.Vector2.sub

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

sub(vector2_a, vector2_b)

View Source

Specs

sub(vector2_a :: Scenic.Math.vector_2(), vector2_b :: Scenic.Math.vector_2()) ::
  Scenic.Math.vector_2()

Subtract one vector from another.

Parameters:

  • vector2_a - the first vector
  • vector2_b - the second vector, which will be subtracted from the first

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