Bezier Curves 75

Back to General discussions forum

hogarth45     2015-02-13 03:28:24
User avatar

Hi,
I've tried a multitude of rounding from 0 to 10 sig figs. But my answers seem to just keep getting
a little wayward, they start and end fine and the example problem works fine as well.

I suspect it is a rounding error has the answers never get very far from the mark, ~+-|1.5| away.

I am using the Linear Bezier curve alogorithm, should I not?

link to solution in question

Rodion (admin)     2015-02-13 15:52:26
User avatar

Hi!

I'll try to check your code and return back as soon as I can find anything which may help!

TestUser     2015-02-14 19:32:46
User avatar

Well, I'm sorry to say so, but your algorithm seems to calculate something different :)

Moreover I'm sorry to say I could not well understand what exactly it calculates! :D

Most suspicious is usage of Math.Pow - I thought the algorithm uses only linear formulas. Perhaps you are calculating some polynomial approximation? Could you please provide some link to some explanations of your formulas where I can read bit more (I'm also sorry to say my math skills are not great)?

I tried my best to create this reference implementation in C# which, probably, could serve as explanation. I'm sorry for my clumsy code - I have close to none experience with this language (though google helps much, ha-ha).

P.S. As you may guess, it's again me, Rodion - sorry for bewilderment with accounts :)

hogarth45     2015-02-15 22:38:00
User avatar

It was able to come up with the right answer... after a few trys, I played the odds and went with one that didn't disect 1 into so many steps.
My program is a mess, as I too am not very strong in the math.
But I skimmed by, fine by me :)

Please login and solve 5 problems to be able to post at forum