Hi all, I've come across a monster of a coordinate transformation in the course of my work and I'd be grateful if someone could give it a look over.
I have two coordinate systems: ( x, y ) and ( x', y' ) that have been scaled by factor 'S', and rotated by angle 'θ', about the point ( a, b ) = ( a', b' ). Neither of these transformations is about the origins of the axes.
I need to be able to transform from both ( x, y ) to ( x', y' ) and back again.
My best guess for the forward transformation is
x' - a' = S{ (x-a)cosθ - (y-b)sinθ } and
y' - b' = S{ -(x-a)sinθ + (y-b)cosθ }
However, I have no idea if this is right and I'm unsure as to what the reverse transformation would be.
Thanks for any help!
I have two coordinate systems: ( x, y ) and ( x', y' ) that have been scaled by factor 'S', and rotated by angle 'θ', about the point ( a, b ) = ( a', b' ). Neither of these transformations is about the origins of the axes.
I need to be able to transform from both ( x, y ) to ( x', y' ) and back again.
My best guess for the forward transformation is
x' - a' = S{ (x-a)cosθ - (y-b)sinθ } and
y' - b' = S{ -(x-a)sinθ + (y-b)cosθ }
However, I have no idea if this is right and I'm unsure as to what the reverse transformation would be.
Thanks for any help!