I've been stuck trying to isolate the variables "x" and "y" in this equation system and was wondering if any one here has the time to solve this for me.
y = rotatedPointY - pointX * s - pointY * c + y * c + x * s
x = rotatedPointX - pointX * c + pointY * s - y * s + x * c
The closest I've got is this but as you can see it pretty far off and might be incorrect.
y = (rotatedPointY - pointX * s - pointY * c + (x * s)) / (1 - c))
x = rotatedPointX - pointX * c + pointY * s - y * s + x * c
---
y = rotatedPointY / (1 - c) - (pointX * s) / (1 - c) - (pointY * c) / (1 - c) + (x * s) / (1 - c)
---
x = rotatedPointX - pointX * c + pointY * s - (rotatedPointY / (1 - c) - (pointX * s) / (1 - c) - (pointY * c) / (1 - c) + (x * s) / (1 - c)) * s + x * c
Thanks for your time.