y coordinate for a given x cubic bezier

前端 未结 4 1594
情歌与酒
情歌与酒 2020-12-09 05:53

This question is very similar to: Quadratic bezier curve: Y coordinate for a given X?. But this one is cubic...

I\'m using the getBezier function to calculate the Y

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 06:34

    The original answer already contains everything you need to know

    There are numerical issues. The exact solution for cubics suffers from stability problems.

    The smooth geometric nature of typical Bezier curves means that spacial search (recursive subdivision) converges nicely, it's usually "fast enough", and it extends easily to N dimensions. There's quite a readable implementation in the Qt source code.

提交回复
热议问题