Scenic.Math.Line.round
You're seeing just the function
round
, go back to Scenic.Math.Line module for more information.
Specs
round(line :: Scenic.Math.line()) :: Scenic.Math.line()
Round the points that define a line so that they are made up of integers.
Parameters:
line
- A line defined by two points. {point_a, point_b}
Returns:
A line
Examples
iex> Scenic.Math.Line.round({{1.5, 1.6}, {2.1, 2.56}})
{{2, 2}, {2, 3}}