曲线方程c ++ [英] equation of curve c++

查看:108
本文介绍了曲线方程c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道通过三点的曲线方程是什么.

在mspaint中,有一个用于绘制曲线的工具,因此有两个固定点和一个控制点,您可以从中控制曲线的性质.

我想实现这种类型的曲线..

在搜索时,我得到了绘制简单贝塞尔曲线的中点算法(分治法) [ ^ ]

c sharp(我想在Visual C ++中使用)它正是我所需要的,但是我无法弄清楚使用什么方程式绘制这种曲线.

hi i want to know what is equation of curve passing through three points.

in mspaint there is tool for drawing curve line, so there are two fix point, and one control point from which u can control the nature of curve.

i want to implement such type of curve..

while searching i got Midpoint Algorithm (Divide and Conquer Method) for Drawing a Simple Bezier Curve[^]

its in c sharp (i want in visual c++)its exactly what i need, but i couldnt figure out what equation is used to draw such curve.

推荐答案

MSPaint可能使用PolyBezier()函数.

看来您已经有了方程式,但我不确定您为什么要方程式.您是否要求我们求解代数方程,为这些点生成抛物线方程?

Google贝塞尔曲线".那就是您想要的.
MSPaint probably uses the PolyBezier() function.

It looks like you already have the equation, I''m not sure why you''re asking for the equation. Are you asking for us to solve the algebra equation, to produce the parabolic equation for those points?

Google "Bezier Curves". That''s what you''re looking for.


这篇关于曲线方程c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆