二次贝塞尔曲线:Y坐标中给定X? [英] Quadratic bezier curve: Y coordinate for a given X?

查看:1133
本文介绍了二次贝塞尔曲线: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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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