Tell me, is it possible to get an array of points from the svg path? screenshot

The gray arrow is a path that can change its angle (maybe straight or ellipsoid), I need to position the control (red circle) on it, but for this I need to know where the strip is at each moment of time. For this, I wanted to get an array of all points, then specify one of them as coordinates

    1 answer 1

    I think it will be necessary to manually do the calculation of the cubic bezier curve. There is a good description (for four points): https://learn.javascript.ru/bezier