How do I implement a Bézier curve in C++?

前端 未结 5 1337
有刺的猬
有刺的猬 2020-11-30 18:53

I\'d like to implement a Bézier curve. I\'ve done this in C# before, but I\'m totally unfamiliar with the C++ libraries. How should I go about creating a quadratic curve?

5条回答
  •  臣服心动
    2020-11-30 19:25

    Did you use a C# library earlier?

    In C++, no standard library function for Bezier curves is available (yet). You can of course roll your own (CodeProject sample) or look for a math library.

    This blogpost explains the idea nicely but in Actionscript. Translation should not be much of a problem.

提交回复
热议问题