Scenic.Math.Vector2.length

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

Specs

length(vector2 :: Scenic.Math.vector_2()) :: number()

Calculates the length of the vector.

This is slower than calculating the squared length.

Parameters:

  • vector2 - the vector

Returns: A number which is the length