Hi!
Since I started using Matrix1Utils I noticed that one of the only functions in there that I used was WRAP(n,min,max).
The problem is: when I make programs using M1U they require dlls that people failt entirely in obtaining, so my programs doesn't work for almost no one.
I tried to rewrite the function in DBPro in such way I could reinstal DBPro pure with no plugins (or at least only with plugins that doesn't require aditional DLs) but even the one in C that I converted doesn't work.
Most of the atempts result in strange behavior.
For example:
Some versions of the code ignore the 0. If I wrap -3 betwen -3 and 3 it gives me -3,-2,-1,1,2,3.
Can anybody help me with a WRAP function that work?
God is real - except if declared as integer.