立體測量(2)
Author: 藍邦偉 老師

拉動r與θ決定觀測點A,B的位置。

x

y

z

單位向量

座標軸

A

B

顯示水平面

立體測量(2)

α = 3.6477381366681487 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
β = 1.3788101090755203 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
O = (9.750116773137352, 3.196851121542182)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-1.0 * sin(α), cos(α) * cos(β))
Z_{unit}: O + (0.0, sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
L = 10 (slider from 1 to 10)
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 = true
r_1 = 7.65 (slider from 1 to 10, step 0.05)
r_2 = 5 (slider from 1 to 10, step 0.05)
θ_1 = 0.2617993877991494 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
θ_2 = 2.356194490192345 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
P_1: O + r_1 * cos(θ_1) * u + r_1 * sin(θ_1) * v
A = Point(b)
e = Segment(A, P_1)
f = Segment(P_1, O)
g = Segment(O, A)
P_2: O + r_2 * cos(θ_2) * u + r_2 * sin(θ_2) * v
h = Segment(A, P_2)
i = Segment(P_2, O)
多邊形1, p_1, a_1, o = Polygon(A, O, P_1)
多邊形2, p_2, a_2, o_1 = Polygon(A, O, P_2)
j = true
r: L - 1.0
多邊形3, k, l, m, n = Polygon(O + r * u + r * v, O - r * u + r * v, O - r * u - r * v, O + r * u - r * v)