旋轉例題
Author: 藍邦偉  老師

$ 旋轉實例 $

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
O = (0, 0)
Q_2: 0.8 * Corner[1] + 0.2 * Corner[2]
Q_3: (x(Q_2), y(Corner[4]))
poly1, q_1, q_2, q_4, q_3 = Polygon(Corner[1], Q_2, Q_3, Corner[4])
A = (2, 2)
list_1: {2, 3, 4, 6, 8, 12}
k = 5 (slider from 1 to 6, step 1)
a = Element(list_1, k)
n = -9 (slider from -30 to 30, step 1)
A' = Rotate(A, (n * π) / a, O)
T_{A'}: "A'" + (LaTeX[A']) + ""
T_{A}: "$ A" + (LaTeX[A]) + " $"
text2: "$A'=\left [ \begin{array}{cc} cos\frac{" + (LaTeX[n]) + "\pi}{" + (LaTeX[a]) + "} & -sin\frac{" + (LaTeX[n]) + "\pi}{" + (LaTeX[a]) + "} \\ sin\frac{" + (LaTeX[n]) + "\pi}{" + (LaTeX[a]) + "} & cos\frac{" + (LaTeX[n]) + "\pi}{" + (LaTeX[a]) + "} \\ \end{array}  \right ] \left [ \begin{array}{cc} " + (LaTeX[x(A)]) + " \\  " + (LaTeX[y(A)]) + " \\ \end{array}  \right ] $
      $=\left [ \begin{array}{cc} " + (LaTeX[x(A')]) + " \\  " + (LaTeX[y(A')]) + " \\ \end{array}  \right ]  $"
c = CircleArc(O, A, A')