Returns the point(s) of intersection between a circle and line.
import { Circles } from "https://unpkg.com/ixfx/dist/geometry.js" 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); Copy
import { Circles } from "https://unpkg.com/ixfx/dist/geometry.js" 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);
Point(s) of intersection, or empty array
Returns the point(s) of intersection between a circle and line.