推移示例
Author: 藍邦偉  老師

\left [ \begin{array}{cc} 1 & h \ 0 & 1 \ \end{array}  \right ]\left [ \begin{array}{cc} x \ y \ \end{array}  \right ]  =\left [  \begin{array}{cc} x+hy \  y \ \end{array} \right ] 

\left [\begin{array}{cc} 1 & 0 \ k & 1 \ \end{array}   \right ] \left [  \begin{array}{cc} x \ y \ \end{array} \right ] =\left [\begin{array}{cc} x \ kx+y \ \end{array}   \right ] 

A

1

2

$推移示例 $

$ A' $

$ A' $

$水平  $

$ 鉛直 $

$ O $

D = (3, 3)
b = 2 (slider from -5 to 5, step 1)
a = 5 (slider from -5 to 5, step 1)
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.64 * Corner[1] + 0.36 * 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 = DynamicCoordinates(D, floor(x(D)), floor(y(D)))
Ta = true
Tb = false
h = -3 (slider from -5 to 5, step 1)
k = -4 (slider from -5 to 5, step 1)
B: (x(A) + h * y(A), y(A))
C: (x(A), k * x(A) + y(A))
text3: "$ \left [ \begin{array}{cc} x' \\ y' \\ \end{array}  \right ]=\left [ \begin{array}{cc} 1 & 0 \\ " + (LaTeX[k]) + " & 1 \\ \end{array}  \right ] \left [ \begin{array}{cc} " + (LaTeX[x(A)]) + " \\ " + (LaTeX[y(A)]) + " \\ \end{array}  \right ]  =\left [  \begin{array}{cc} " + (LaTeX[x(C)]) + "  \\  " + (LaTeX[y(C)]) + " \\ \end{array} \right ]  $"
text4: "$ \left [\begin{array}{cc} x' \\ y' \\ \end{array}   \right ]  =\left [\begin{array}{cc} 1 &" + (LaTeX[h]) + " \\ 0 & 1 \\ \end{array}   \right ] \left [  \begin{array}{cc} " + (LaTeX[x(A)]) + " \\ " + (LaTeX[y(A)]) + " \\ \end{array} \right ] =\left [ \begin{array}{cc}" + (LaTeX[x(B)]) + " \\ " + (LaTeX[y(B)]) + " \\ \end{array}  \right ] $"
c: y = y(A)
d: x = x(A)