Coordinate Transformations
This program provides two-dimensional coordinate translation and
rotation.
The following formulas are used to convert a point P from the Carte
sian coordinate pair (x, y) in the old system to the pair (u, v) in the
new, translated, rotated system.
u = (x — m) cos0 + (y — n) sin0
v = (y — n) cos0 — (y - n) sin0
The inverse transformation is accomplished with the formulas below.
x =
« cos0 — v sin0 +
m
y = u sin0 + v cos0 + n
The HP-32S complex and polar-to-rectangular functions make these
computations straightforward.
Old coordinate
system
v
co.cn
New coordinate
system
A Two-Dimensional Rotation About the Axis
198
12: Mathematics Programs
Need help?
Do you have a question about the HP-32S and is the answer not in the manual?