Jump to content
  • Advertisement
Sign in to follow this  
ZMaster

GDI+ Curve - Math

This topic is 4416 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. Does anyone know how GDI+ evaluates a curve with a call to DrawCurve() mathematicaly? I mean the one, where all the points are parts of the curve actualy and not the bezier one. It looks to me like some x^3 interpolation but I'm not 100 percent sure and I need to be ;-) Any idea? Thanks in advance! ZMaster

Share this post


Link to post
Share on other sites
Advertisement
Have you tried posting to microsoft . public . platformsdk . gdi

Most of the people there are friendly enough and you may just get a ms dev who knows how it was implemented.

Cheers
Chris

Share this post


Link to post
Share on other sites
Thank you for the hint, Chris.
I posted on the Microsoft forums, where I was told that this kind of curve is a 'cardinal b-spline' (see en.wikipedia.org for an explanation), if anyone wants to know that, too.

Share this post


Link to post
Share on other sites
I don't know about those splines, but you might want to look into Catmull rom splines. I've used these myself, and im my experience, they work very well. Google has lots of info on that too

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!