立體測量(3)
Author: 藍邦偉 老師
Date: 11 12 月 2012

拉動x與y決定A,B兩觀測點點的座標

N

E

z

單位向量

座標軸

z = 6.7 (slider from 1 to 10, step 0.1)
O = (12.179887811619993, 1.2411817491049397)
β = 1.4486232791552935 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
Z_{unit}: O + (0, sin(β))
w = Vector(O, Z_{unit})
y_2 = 7.7 (slider from -10 to 10, step 0.1)
x_2 = 5.7 (slider from -10 to 10, step 0.1)
α = 4.276056667386107 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
X_{unit}: O + (cos(α), sin(α) * cos(β))
u = Vector(O, X_{unit})
Y_{unit}: O + (-1 * sin(α), cos(α) * cos(β))
v = Vector(O, Y_{unit})
y_1 = -3.3 (slider from -10 to 10, step 0.1)
x_1 = 3.5 (slider from -10 to 10, step 0.1)
L = 9 (slider from 1 to 10, step 1)
a = Vector(O - L * v, O + L * v)
b = Vector(O - L * w, O + L * w)
z_1 = 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
A: O + x_1 * u + y_1 * v
H: O + z * w
e = Segment(A, H)
B: O + x_2 * u + y_2 * v
g = Segment(B, H)
h = Segment(B, O)
i = Segment(B, A)
j = Segment(O, A)
f = Segment(O, H)
γ = Angle(O, A, H)
δ = Angle(O, B, H)

Tool: Poly_B3
Input: A, B, C
Output: poly1'

α = Angle(C, B, A)
d: sqrt(sgn(sin(α)))
A' = Dilate(A, d, A)
B' = Dilate(B, d, A)
C' = Dilate(C, d, A)
poly1', c', a', b' = Polygon(A', B', C')

Tool: Poly_B5
Input: A, B, C, D, E
Output: poly1'

poly1, a, b, c, d, e = Polygon(A, B, C, D, E)
F = Midpoint(b)
G = Midpoint(d)
α = Angle(G, F, A)
f: sqrt(sgn(sin(α)))
A' = Dilate(A, f, A)
B' = Dilate(B, f, A)
C' = Dilate(C, f, A)
D' = Dilate(D, f, A)
E' = Dilate(E, f, A)
poly1', a', b', c', d', e' = Polygon(A', B', C', D', E')