bezier-bezier-intersection-boundless
function bezierBezierIntersectionBoundless(ps1: number[][], ps2: number[][]): RootInterval[] | undefined
Defined in intersection/bezier-bezier-intersection/bezier-bezier-intersection-boundless.ts:24
Returns the intersection between any of two linear, quadratic or cubic bezier
curves without limiting the t parameter value of the first given curve
in [0,1], i.e. t ∈ [-∞,+∞].
-
if the two curves have an infinite number of intersections
undefinedis returned -
the second bezier curve's parameter
tvalues are returned ordered bytvalue -
precondition: the bezier curves must be of lowest possible representable order, i.e. cubics are really cubics, etc. (else use [[reduceOrderIfPossible]] first)
Parameters:
| Name | Type | Description |
|---|---|---|
ps1 | number[][] | an order 1,2 or 3 bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,7],[0,0]] |
ps2 | number[][] | another bezier curve |