Scenic.Math.Line.parallel

You're seeing just the function parallel, go back to Scenic.Math.Line module for more information.
Link to this function

parallel(line, distance)

View Source

Specs

parallel(line :: Scenic.Math.line(), distance :: number()) :: Scenic.Math.line()

Find a new line that is parallel to the given line and separated by the given distance.

Parameters:

  • line - A line defined by two points. {point_a, point_b}
  • distance - The perpendicular distance to the new line.

Returns: A line

Examples

iex> Scenic.Math.Line.parallel({{1, 1}, {1, 2}}, 2)
{{3.0, 1.0}, {3.0, 2.0}}