Is it possible to express “t” variable from Cubic Bezier Curve equation?

What you need is to search your cubic path and remember closest point. This can be done recursively with increasing precisions here small C++ GL example: //————————————————————————— double pnt[]= // cubic curve control points { -0.9,-0.8,0.0, -0.6,+0.8,0.0, +0.6,+0.8,0.0, +0.9,-0.8,0.0, }; const int pnts3=sizeof(pnt)/sizeof(pnt[0]); const int pnts=pnts3/3; //————————————————————————— double cubic_a[4][3]; // cubic coefficients void cubic_init(double *pnt) … Read more