Scenic.Math.Line.intersection

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

intersection(line_a, line_b)

View Source

Specs

intersection(line_a :: Scenic.Math.line(), line_b :: Scenic.Math.line()) ::
  Scenic.Math.point()

Find the point of intersection between two lines.

Parameters:

  • line_a - A line defined by two points. {point_a, point_b}
  • line_b - A line defined by two points. {point_a, point_b}

Returns: A point

Examples

iex> Scenic.Math.Line.intersection({{1, 1}, {3, 3}}, {{3, 1}, {1, 3}}) {2.0, 2.0}