Auto compass adjustment for w&h for TPAtoATPAEx/SplitTPAEx
In its current state, TPAtoATPAEx/SplitTPAEx does not take into account the compass direction when executing from the width and height parameters.
This can cause inaccuracies when finding rectangular objects with much higher width than its height or vice versa. To demonstrate what i mean:
http://i.imgur.com/03FT1.png
With the compass facing north, the stone will be vertical, and if my w/h is set for vertical, its going to return a single ATPA and give me a single point perfectly. But if the compass were to turn to the east/west, it will become horizontal and hence the same width/height will result in 2 ATPA instead (and hence 2 points).
So maybe we can have another TPAtoATPAEx/SplitTPAEx function dedicated to RS that calls rs_GetCompassAngleRadians, then adjusting the search rectangle to the same angle as the compass.
I know this is to do with WizzyPlugin and isn't really to do with SRL include but cant find a more suitable place to post it.