Quadratic bezier curve: Y coordinate for a given X ?
Posted
by stefan.at.wpf
on Stack Overflow
See other posts from Stack Overflow
or by stefan.at.wpf
Published on 2010-03-31T00:48:31Z
Indexed on
2010/03/31
0:53 UTC
Read the original article
Hit count: 448
Hello,
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!
© Stack Overflow or respective owner