My brain is not working. I just can't get this right.
I have 2 rectangles (they are actually approximately squares).
One square (s1) is 984 units wide and 984 units tall.
The other square (s2) is 2952 units wide and tall.
There is a point somewhere in s2 (lets say 394, 581). I need the equation that gets the X and Y offset needed to overlay s2 over s1 so that the point in s2 is always in the center of s1 no matter where the point is in s2.
If that makes sense.
Think of it like I have a person standing on a location in a world. They are a point on a massive map. However, I can only display a small portion of the map and I want that person to always be in the center.
This seems like it should be super simple, but I am operating on 3 hours of sleep and it feels like an insurmountable task at this time. Please, someone save me.