六角錐
Author: 9901高二忠班任揚龢

X

Y

Z

單位向量

xy平面

正六角錐

六角錐

α = 2.2689280275926285 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
β = 1.9198621771937625 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
O = (0, 0)
X: O + (cos(α), sin(α) * cos(β))
Y: O + (-sin(α), cos(α) * cos(β))
Z: O + (0.0, sin(β))
u = Vector(O, X)
v = Vector(O, Y)
w = Vector(O, Z)
L = 3 (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)
X_x: O + L * u
Y_y: O + L * v
Z_z: O + L * w
座標軸 = true
d = false
多邊形1, e, f, g, h = Polygon(O + L * u + L * v, O - L * u + L * v, O - L * u - L * v, O + L * u - L * v)
i = true
A_1: O + 2.0 * cos(0.0°) * u + 2.0 * sin(0.0°) * v
A_2: O + 2.0 * cos(60.0°) * u + 2.0 * sin(60.0°) * v
A_3: O + 2.0 * cos(120.0°) * u + 2.0 * sin(120.0°) * v
A_4: O + 2.0 * cos(180.0°) * u + 2.0 * sin(180.0°) * v
A_5: O + 2.0 * cos(240.0°) * u + 2.0 * sin(240.0°) * v
A_6: O + 2.0 * cos(300.0°) * u + 2.0 * sin(300.0°) * v
多邊形2, a_1, a_2, a_3, a_4, a_5, a_6 = Polygon(A_1, A_2, A_3, A_4, A_5, A_6)
P: O + 2.0 * w
多邊形3, a_7, p, a_8 = Polygon(P, A_2, A_1)
多邊形4, a_9, p_1, a_{10} = Polygon(P, A_2, A_3)
多邊形5, a_{11}, p_2, a_{12} = Polygon(P, A_1, A_6)
多邊形6, a_{13}, p_3, a_{14} = Polygon(P, A_6, A_5)
多邊形7, a_{15}, p_4, a_{16} = Polygon(P, A_5, A_4)
多邊形8, a_{17}, p_5, a_{18} = Polygon(P, A_4, A_3)
j = CurveCartesian(x(O + 2.0 * cos(θ) * u + 2.0 * sin(θ) * v), y(O + 2.0 * cos(θ) * u + 2.0 * sin(θ) * v), θ, 0.0, 6.283185307179586)