将二次曲线点转换为多项式表示?

发布于 2024-07-14 04:07:21 字数 356 浏览 5 评论 0原文

我有二次贝塞尔曲线的 2 个端点和 1 个贝塞尔点的 X、Y。

使用这些数据,我如何导出曲线的多项式表示

替代文本
(来源:euclidraw.com

I have the X,Y of 2 end points and 1 bezier point, of a Quadratic Bezier curve.

Using this data, how can I derive the polynomial representation of the curve?

alt text
(source: euclidraw.com)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅唱々樱花落 2024-07-21 04:07:21

B(t) = (1-t) * (1-t) * B0 + 2 * (1-t) * t * B1 + t * t * B2

B(t) = (1-t) * (1-t) * B0 + 2 * (1-t) * t * B1 + t * t * B2

誰認得朕 2024-07-21 04:07:21

噢。 那会很棘手。 贝塞尔曲线 是参数化曲线,即:

x = f(t)
y = g(t)

其中 t=0 产生一个端点,t =1 产生另一个。

从技术上讲,您可以弄清楚如何消除“t”并得到 x 和 y 的方程,但它不会是像 y = a + bx + cx2 ... 这样的多项式; 这将是一个方程 h(x,y) = 0,其中 h 可能有点难看。

Oog. That would be tricky. Beziers are parametrized curves, namely:

x = f(t)
y = g(t)

where t=0 yields one endpoint and t=1 yields the other.

You could technically figure out how to eliminate "t" and get an equation in x and y, but it would not be a polynomial like y = a + bx + cx2 ...; it would be an equation h(x,y) = 0 where h is probably somewhat ugly.

她说她爱他 2024-07-21 04:07:21

维基百科有一个关于此的部分。 也许这有帮助。

Wikipedia has a section about this. Perhaps this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文