I have this generic SVG Path, consisting of quadratic curves. I don't need to draw it, I don't even have an SVG element, just the string with points (well, I do have a full SVG file if it matters). All I need is one simple thing: to get coordinates of a point on this path by given percent or length or any other way. Path.pointAt()
will work perfectly.
Question is: what is the easiest and best performance-wise way to do it? Am I to create an SVG element and work with it dynamically via JS? Will it affect overall performance if I have, like, 10-30 of these paths?
Maybe there are any known libraries providing just the math? If it matters, I'm working with PixiJS v4, and my target platform is, well, all of them: desktop browsers (incl IE11), iOS and Android devices.