三角測量
Author: 藍邦偉  老師

三角測量

s = 0.6 (slider from 0 to 1, step 0.1)
x_1: 0.1 * Random[0.0, 50.0] + s * 0.0
x_2: 0.1 * Random[0.0, 50.0] + s * 0.0
y_1: 0.1 * Random[0.0, 35.0] + s * 0.0
y_2: 0.1 * Random[0.0, 35.0] + s * 0.0
A: (x_1, y_1)
B: (x_2, y_2)
C = (-4.224093622036684, 6.311414793670355)
a: x = x(C)
D = Point(a)
b = Segment(C, D)
c = Segment(D, B)
d = Segment(D, A)
e = Segment(C, B)
f = Segment(C, A)
g = Segment(A, B)
A_1: A + (0.0, 0.2)
A_2: A_1 - (0.3, 0.0)
B_1: B + (0.0, 0.2)
B_2: B_1 - (0.3, 0.0)
B_3: B_1 + (0.3, 0.0)
A_3: A_1 + (0.3, 0.0)
h = CircumcircleArc(B_3, B, B_2)
k = CircumcircleArc(A_3, A, A_2)
B' = Mirror(B, B_1)
A' = Mirror(A, A_1)
多邊形1, i, b_1, b', E = Polygon(B_1, B', 3.0)
多邊形2, j, a_1, a', F = Polygon(A_1, A', 3.0)