Can anybody translate this jargon about C++ and Radient?

macaveli92

Junior Member
Joined
May 20, 2012
Messages
142
Reaction score
34
So my friend posts a programming question in relation to his hobby, map making using gtk radient. Well it related to C++ and math... I think. I literally have no idea, but I told him to write out the question so I could ask my secret super best friend club BHW. If you have any insight into the answer, or want to try solve this rubck's cube throw a comment below please!

Well. I was working on hybriding features from radiant 1.5 and 1.4 to create a super version. Apparently when I was trying to implement mousedrag I broke the math for curve.h and it isn't properly calculating beziers. I'm curious on how one properly constructs the bernsteinpolynomial templates for generating these mathematically generated curves so that in the future the same mistake won't be made. I mean, I fully comprehend Bernstein Polynomials in general, Casteljau's algorithm et al. It's just I have this alarming talent for producing broken coding these days.
 
Without knowing how he "broke" curve.h it is tough to provide an answer. I'm a bit confused if he is more interested in the abstract of Bernstein polynomials, how they are templated (I'm assuming) in the library, how to code them in C++, or how to fix the header file.

Errors of this nature typically happen because the library functions expect a very specific parameter list/type. Tell him to check his warnings to ensure that an invalid type was not passed by accident; some creative C-style casting might solve his problem.
 
Back
Top