Author: 李季樵

x

y

z

單位向量

座標軸

xy平面

α = 2.181661564992912 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
β = 2.2689280275926285 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
O = (-1.157827321949978, 2.430142830692546)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
Z_{unit}: O + (0, sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
L = 10 (slider from 1 to 10, step 1)
a = Vector(O - L * u, O + L * u)
b = Vector(O - L * v, O + L * v)
c = Vector(O - L * w, O + L * w)
h_1 = false
i = false
j = false
W = 3 (slider from 0.1 to 3, step 0.1)
l = 3 (slider from 0.1 to 3, step 0.1)
A_1: O + l * u + W * v
A_2: O - l * u + W * v
A_3: O - l * u - W * v
A_4: O + l * u - W * v
B_1: A_1 + 4 * w
B_2: A_2 + 4 * w
B_3: A_3 + 4 * w
B_4: A_4 + 4 * w
P_1, b_1, b_2, b_3, b_4 = Polygon(B_1, B_2, B_3, B_4)
P_3, b_7, a_4, a_1, b_8 = Polygon(B_4, A_4, A_3, B_3)
P_4, b_9, a_5, a_6, b_{10} = Polygon(B_1, A_1, A_4, B_4)
P_5, b_{11}, a_7, a_8, b_{12} = Polygon(B_2, A_2, A_1, B_1)
P_6, a_9, a_{10}, a_{11}, a_{12} = Polygon(A_4, A_3, A_2, A_1)
B42 = 0
poly1, a_{13}, b_{13}, b_{14}, a_{14} = Polygon(A_2, B_2, B_3, A_3)