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

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

Example

Notes

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