I take it foreach doesnt work with string-arrays in cod2? For afaik there is no way to get all keys() from such an array...
I take it foreach doesnt work with string-arrays in cod2? For afaik there is no way to get all keys() from such an array...
Try height = something * (1 - zoom) + something_else.
Same for width.
Why do you divide by 'zoom'?
y = 1/x is not a linear function. That's why your zooming is not linear.
i just put all those values in matlab, looks like this:
358
Looks like a linear function with some non-linear parts at the end, so i tried a second-order fit, which resulted in this:
359
...