Skip to main content

utils.pointOnCurve()

The utils.pointOnCurve() function returns true if the point check lies on a curve described by points start, cp1, cp2, and end.

Signature

bool utils.pointOnCurve(
Point start,
Point cp1,
Point cp2,
Point end,
Point check
)

Example

A Utils.pointOnCurve() example

Notes

Keep in mind that calculations with Bézier curves are often approximations.