Hello!

As you can probably understand from the title, asking this here is my last resort. (Ok maybe not my absolutely last resort )

What I need to do is rotate a point P around another point O. What i've used this far is the standard formula of:

x' = cos(θ) * (xP - xO) - sin(θ) * (yP - yO) + xO

y' = sin(θ) * (xP - xO) + cos(θ) * (yP - yO) + yO

But this obviously doesn't work because Ice doesn't support negative numbers. I've been banging my head against my table for the past 2 days trying to figure out a fix but haven't been able to come up with a formula that works.

Also sorry if there are any formatting errors in this post as this is my first post on this forum!

Thank you in advance!

As you can probably understand from the title, asking this here is my last resort. (Ok maybe not my absolutely last resort )

What I need to do is rotate a point P around another point O. What i've used this far is the standard formula of:

x' = cos(θ) * (xP - xO) - sin(θ) * (yP - yO) + xO

y' = sin(θ) * (xP - xO) + cos(θ) * (yP - yO) + yO

But this obviously doesn't work because Ice doesn't support negative numbers. I've been banging my head against my table for the past 2 days trying to figure out a fix but haven't been able to come up with a formula that works.

Also sorry if there are any formatting errors in this post as this is my first post on this forum!

Thank you in advance!