ixfx
    Preparing search index...

    Function intersectionLine

    • Returns the point(s) of intersection between a circle and line.

      const circle = { radius: 5, x: 5, y: 5 };
      const line = { a: { x: 0, y: 0 }, b: { x: 10, y: 10 } };
      const pts = Circles.intersectionLine(circle, line);

      Parameters

      Returns readonly Point[]

      Point(s) of intersection, or empty array