Scenic.Math.Vector2.add

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

add(vector2_a, vector2_b)

View Source

Specs

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

Add two vectors together.

Parameters:

  • vector2_a - the first vector to be added
  • vector2_b - the second vector to be added

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

Examples

iex> Scenic.Math.Vector2.add({1.0, 5.0}, {3.0, 3.0})
{4.0, 8.0}