How can I draw Quadratic Curve through 3 points by using C# System.Drawing namespace?
How can I draw Quadratic Curve through 3 points by using C# System.Drawing namespace?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want to draw a quadratic curve that goes through three given points, or do you want to draw a quadratic Bézier curve that uses three given points?
If what you want is a Bézier curve, try this:
Which I just shamelessly lifted from the MSDN documentation for
GraphicsPath.AddBeziers().Edit: If what you really want is to fit a quadratic curve, then you need to do a curve fitting or polynomial interpolation on your points. Perhaps this answer from Ask Dr. Math will help.