顯示三維座標架

O = (0, 0)
θ = 3.490658503988659 rad (slider from 0 to 6.283185307179586, step 0.5*°)
α = 0.593411945678072 rad (slider from 0*° to 180*°, step 0.5*°)
r = 4.6 (slider from 0 to 15, step 0.01)
U_x: (r * (cos(θ), (sin(θ) * sin(α))))
U_y: (r * ((-sin(θ)), (cos(θ) * sin(α))))
U_z: (r * (0, cos(α)))
u = Vector(O, U_z)
v = Vector(O, U_y)
w = Vector(O, U_x)
a = true
A = (0.02, 2.34)
B = (-2.5, -2.08)
C = (2.28, -0.96)
poly1, c, a_1, b = Polygon(A, B, C)
Y': U_x / r
X': U_y / r
Z': U_z / r
A': O + (x(A) * X') + (y(A) * Y') + (z(A) * Z')
C': O + (x(C) * X') + (y(C) * Y') + (z(C) * Z')
B': O + (x(B) * X') + (y(B) * Y') + (z(B) * Z')
poly2, c', a', b' = Polygon(A', B', C')
scal = 2.9 (slider from 0 to 10, step 0.01)
C'': O + (x(C) * X') + (y(C) * Y') + (scal * Z')
B'': O + (x(B) * X') + (y(B) * Y') + (scal * Z')
A'': O + (x(A) * X') + (y(A) * Y') + (scal * Z')
poly3, b'', a'', c'' = Polygon(A'', C'', B'')
poly4, a''_1, a'_1, c'_1, c''_1 = Polygon(A'', A', C', C'')
poly5, b''_1, b'_1, c'_2, c''_2 = Polygon(B'', B', C', C'')
poly6, b''_2, a''_2, a'_2, b'_2 = Polygon(B'', A'', A', B')