Translating the C++ "linearIndex()" to Python
<p>I have this, in C++, linearIndex( float, float2, int, int2 ) and would like to get the same effect, only in Python. I'm not sure exactly what it (the linearIndex()) does or how it works, so I you wouldn't mind explaining that also, that'd be sweet.</p>

<p>I'm guessing it's a matter of some clever usage of for loops.</p>

<p>Thanks</p>
