二次贝塞尔曲线:Y坐标中给定X?

编程入门 行业动态 更新时间:2024-10-10 05:26:26
本文介绍了二次贝塞尔曲线:Y坐标中给定X?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个的二次的贝塞尔曲线,我需要一个给定的X坐标贝塞尔曲线上的点的Y坐标。我知道,在纯数学这可以很容易做到,但我不知道是在C#/ WPF有一个简单/另一种方式呢?是否有可能习惯于单点用C#/ WPF绘制贝塞尔曲线,然后也许只是循环比较它们与给定的X坐标每个点的X坐标? BTW的数学方法这将是很好知道哪一步了贝塞尔曲线的参数t已经被C#/ WPF choosen?任何机会,以发现这一点?也许t的只是/缩放的步骤在t是1 /(P0,P2的距离)? !非常感谢您的任何暗示。

I have a quadratic bezier curve and I need the Y coordinate of a point on the bezier curve for a given X coordinate. I know that in pure maths this can be easily done, but I'm wondering is there's a simple / another way for this in C# / WPF? Is it possible to get the single points used by C# / WPF for drawing the bezier curve and then maybe just loop them and compare the X coordinate of each point with the given X coordinate? BTW for the mathematical way it would be good to know which step for the parameter t of the bezier curve has been choosen by C# / WPF? Any chance to find this out? Probably t is just scaled by / steps for t are 1/(distance of P0 and P2) ? Thank you very much for any hint!

推荐答案

在Degrafa看看的贝塞尔Ÿ位于X算法。

Take a look at Degrafa Bezier Y at X Algorithm.

更多推荐

二次贝塞尔曲线:Y坐标中给定X?

本文发布于:2023-11-29 06:56:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1645669.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:坐标   塞尔   曲线

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!