Hi,
I want to develop the eq of 2D rotation about an arbitrary point. Book has given this eq but it does not show how we got it:
Translation of Object to Origin:
x1 = x-xr
y1= y-yr
Rotation about origin:
x' = x1 cosθ -y1 sinθ
y' = x1 sinθ + y1 cosθ
Putting values:
x' = (x-xr) cosθ - (y-yr) sinθ
y' = (x-xr) sinθ + (y-yr) cosθ
Translation of object back to its original position (xr, yr)
x'= xr + (x-xr) cosθ - (y-yr) sinθ
y' = yr +(x-xr) sinθ + (y-yr) cosθ
Some body please guide me whether my approach is correct or not?
Zulfi.
I want to develop the eq of 2D rotation about an arbitrary point. Book has given this eq but it does not show how we got it:
Translation of Object to Origin:
x1 = x-xr
y1= y-yr
Rotation about origin:
x' = x1 cosθ -y1 sinθ
y' = x1 sinθ + y1 cosθ
Putting values:
x' = (x-xr) cosθ - (y-yr) sinθ
y' = (x-xr) sinθ + (y-yr) cosθ
Translation of object back to its original position (xr, yr)
x'= xr + (x-xr) cosθ - (y-yr) sinθ
y' = yr +(x-xr) sinθ + (y-yr) cosθ
Some body please guide me whether my approach is correct or not?
Zulfi.