Scenic.Math.Vector2.length_squared
You're seeing just the function
length_squared
, go back to Scenic.Math.Vector2 module for more information.
Specs
length_squared(vector2 :: Scenic.Math.vector_2()) :: number()
Calculates the squared length of the vector.
This is faster than calculating the length if all you want to do is compare the lengths of two vectors against each other.
Parameters:
vector2
- the vector
Returns: A number which is the square of the length