439
PROGRAM SHEET
No.
5
Program for
Rotating a Figure
Description
Formula for coordinate transfor-
mation:
(
x
,
y
)
#
(
x'
,
y'
)
x'
=
x
cos
'
–
y
sin
'
y'
=
x
sin
'
+
y
cos
'
Graphing of rotation of any geometric figure by
'
degrees.
Example
To rotate by 45
°
the triangle defined by points A (2, 0.5), B (6, 0.5), and C (5, 1.5)
Notes
• Use the cursor keys to move the pointer around the display.
• To interrupt program execution, press
A
while the graphic screen is on the display.
• The triangle cannot be drawn if the result of the coordinate transformation operation
exceeds View Window parameters.
Preparation and operation
• Store the program written on the next page.
• Execute the program as shown below.
A
B
C
D
E
F
G
x
1
y
1
x
2
y
2
x
3
y
3
x'
1
y'
1
x'
2
y'
2
x'
3
y'
3
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
0
X
Y
B(
x
2,
y
2
)
A(
x
1,
y
1
)
C(
x
3,
y
3
)
Memory
Contents
Summary of Contents for CFX-9970G
Page 22: ... CFX 9970G ...
Page 452: ...435 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 453: ...436 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Page 454: ...437 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 455: ...438 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 458: ...441 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...