三角測量(13)
Author: 藍邦偉  老師

由建築物正南方一點S與正西方一點W觀察建築物屋頂的仰角。測得WS的距離，計算建築物的高度。

三角測量(13)

D = (1.56, -2.16)
C = (-3.8000000000000003, -1)
b = Ray(C, D)
F = Point(b)
q = Segment(C, F)
B_2 = (1.44, -0.86)
A_2 = (-1.18, -0.64)
d = Segment(C, A_2)
a = Ray(A_2, B_2)
E = Point(a)
H = Midpoint(A_2, E)
J = Midpoint(H, E)
N = Midpoint(J, E)
N' = Mirror(N, E)
E' = Mirror(E, N')
M = Midpoint(H, J)
I = Midpoint(A_2, H)
L = Midpoint(I, H)
K = Midpoint(A_2, I)
h = Line(K, d)
i = Line(I, h)
j = Line(L, i)
k = Line(H, j)
l = Line(M, k)
m = Line(J, l)
n = Line(N, m)
V = Intersect(n, q)
V' = Mirror(V, F)
F' = Mirror(F, V')
G = Corner(2.0)
多邊形1, a_1, c, f, g, e = Polygon(A_2, C, F, G, E)
O = (-1.56, -0.62)
p = Line(E, n)
P = Intersect(h, q)
Q = Intersect(i, q)
R = Intersect(j, q)
S_1 = Intersect(k, q)
T = Intersect(l, q)
U = Intersect(m, q)
r = Segment(V', N')
s = Segment(P, K)
t = Segment(Q, I)
b_1 = Segment(R, L)
c_1 = Segment(S_1, H)
d_1 = Segment(T, M)
e_1 = Segment(U, J)
f_1 = Segment(V, N)
g_1 = Segment(F, E)
W_1: 2.0 / 3.0 * C + 1.0 / 3.0 * A_2
Z: 1.0 / 3.0 * E' + 2.0 / 3.0 * F'
i_1 = Segment(F', E')
h_1 = Ray(W_1, Z)
Z_2: 2.0 / 3.0 * E' + 1.0 / 3.0 * F'
W_2: 2.0 / 3.0 * A_2 + 1.0 / 3.0 * C
j_1 = Ray(W_2, Z_2)
k_1 = Ray(C, U)
l_1 = Ray(A_2, J)
m_1 = Ray(U, Vector[Vector[J, U]])
A_1 = Intersect(e_1, h_1)
B_1 = Intersect(f_1, h_1)
C_1 = Intersect(f_1, k_1)
D_1 = Mirror(A_1, U)
E_1 = Mirror(B_1, C_1)
n_1 = Segment(D_1, E_1)
F_1 = (-4.3, -1.06)
G_1 = Point(m_1)
G_2 = Corner(1.0)
多邊形2, g_2, g_3, u, c_2, f_2 = Polygon(G_2, G_1, U, C, F_1)
多邊形3, f_3, u_1, g_4 = Polygon(U, G_1, F)
p_1 = Ray(B_1, C_1)
H_1 = Point(l_1)
I_1 = (11.82, -0.9)
J_1 = Point(l_1)
多邊形4, j_2, h_2, i_2 = Polygon(H_1, I_1, J_1)
A = (2.08, -0.9)
q_1: x = x(A)
B = Point(q_1)
r_1 = Segment(B, A)
S = Point(l_1)
s_1 = Ray(I, Q)
W = Point(s_1)
t_1 = Segment(W, A)
a_2 = Segment(A, S)
b_2 = Segment(B, W)
d_2 = Segment(B, S)
e_2 = Segment(W, S)