Ha! I figured it out. Combining the two formulas lead to this:
I can't believe I still remember how to do all this crap.
X = ((X1-512)/44-(Y1-678)/28)/2 and Y = (-(X1-512)/44-(Y1-678)/28)/2See, if X =
X1 - 512 X = -------- + Y 44and Y (from the second posts equations) =
-(Y1-678) Y = --------- - X 28then if the second equation is substituted for Y in the first, you get
X1 - 512 -(Y1-678) X = -------- + --------- - X 44 28which then becomes
X1 - 512 -(Y1-678) 2X = -------- + --------- 44 28and then
X1 - 512 -(Y1-678) X = -------- + --------- 44 28 -------------------- 2which is the solution. The solution for Y was similar.
I can't believe I still remember how to do all this crap.