圓柱的形成
Author: 藍邦偉  老師

x

y

z

單位向量

座標軸

圓柱的形成

Reset

Start

α = 3.263765701229396 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
β = 1.4486232791552935 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
O = (8.935691828548391, 4.165412951259465)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-1 * sin(α), cos(α) * cos(β))
Z_{unit}: O + (0, sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
L = 5 (slider from 1 to 10, step 1)
a = Vector(O - L * v, O + L * v)
b = Vector(O - L * w, O + L * w)
z = Vector(O - L * u, O + L * u)
A_1: O + L * u
B_1: O + L * v
Z: O + L * w
c = false
d = false
r = 3 (slider from 1 to 5, step 0.1)
n = 27 (slider from 1 to 50, step 1)
h = 3.2 (slider from 1 to 5, step 0.1)
e = CurveCartesian(x(O + r * cos(t) * u + r * sin(t) * v + h * w), y(O + r * cos(t) * u + r * sin(t) * v + h * w), t, 0, 6.28319)
f = CurveCartesian(x(O + r * cos(t) * u + r * sin(t) * v - h * w), y(O + r * cos(t) * u + r * sin(t) * v - h * w), t, 0, 6.28319)
集合1 = Sequence(Segment[O + r * cos(i * 2 * 3.141592653589793 / n) * u + r * sin(i * 2 * 3.141592653589793 / n) * v + h * w, O + r * cos(i * 2 * 3.141592653589793 / n) * u + r * sin(i * 2 * 3.141592653589793 / n) * v - h * w], i, 1, n)
s = 0 rad (slider from 0 to 6.283185307179586, step 0.1*°)
U_1: O + r * cos(s) * u + r * sin(s) * v + h * w
U_2: O + r * cos(s) * u + r * sin(s) * v - h * w
V_1: O + h * w
V_2: O - h * w
多邊形1, v_1, v_2, u_2, u_1 = Polygon(V_1, V_2, U_2, U_1)