Scenic.Math.Vector2.round
You're seeing just the function
round
, go back to Scenic.Math.Vector2 module for more information.
Specs
round(vector_2 :: Scenic.Math.vector_2()) :: Scenic.Math.vector_2()
Round the values of a vector to the nearest integers.
Parameters:
vector_2
- the vector to be rounded
Returns: The integer vector
Examples
iex> Scenic.Math.Vector2.round({1.2, 1.56})
{1, 2}