Skip to main content

utils.beamIntersectsCurve()

The utils.beamIntersectsCurve() function finds the intersection between an endless line and a curve described by points start, cp1, cp2, and end.

warning

This function can sometimes fail to find intersections in some curves due to a limitation in an underlying Bézier library. Please see Bug #3367 for more information.

Signature

array | false utils.beamIntersectsCurve(
Point from,
Point to,
Point start,
Point cp1,
Point cp2,
Point end
)

Example

A Utils.beamIntersectsCurve() example