Reversing equation

BlitzMax Forums/BlitzMax Programming/Reversing equation

Ok sorry i didn't explain it that well.

The first part calculates an X coordinate and the second calculates the Y:

X Co-ord= XPos+(30*CountX)-(CountY*30)
Y Co-ord= YPos+(15*CountY)+(CountX*15)


CountX and CountY are numbers from 0 to n (whole numbers). I use these in a For loop to draw the images i am using.

PosX and PosY are numbers i know. They are just in there so i can move the overall image around the screen.

So if the user clicks on one of the images i need to (using MouseX and MouseY) work out what the CountX, CountY position of the image is.

I hope this makes more sense.