Scenic.Math.Vector2.trunc
You're seeing just the function
trunc
, go back to Scenic.Math.Vector2 module for more information.
Specs
trunc(vector_2 :: Scenic.Math.vector_2()) :: Scenic.Math.vector_2()
Truncate the values of a vector into integers.
Parameters:
vector_2
- the vector to be truncated
Returns: The integer vector
Examples
iex> Scenic.Math.Vector2.trunc({1.6, 1.2})
{1, 1}