立體測量
Author: 藍邦偉 老師

x

y

z

顯示xy平面

顯示單位向量

顯示座標軸

A

B

A: (x((Corner[3.0] + 39.0 * Corner[4.0]) / 40.0), y((Corner[1.0] + 9.0 * Corner[4.0]) / 10.0))
B: (x((4.0 * Corner[3.0] + 16.0 * Corner[4.0]) / 20.0), y((Corner[1.0] + 9.0 * Corner[4.0]) / 10.0))
a = Segment(A, B)
C: (3.0 * A + B) / 4.0
D: (3.0 * B + A) / 4.0
E = Point(a)
c = Circle(C, E)
c' = Translate(c, Vector[Vector[C, D]])
A' = Rotate(A, 270.0*°, C)
B' = Rotate(B, 270.0*°, C)
a' = Segment(A', B')
c'' = Rotate(c', 270.0*°, C)
D' = Rotate(D, 270.0*°, C)
E' = Rotate(Translate[E, Vector[C, D]], 90.0*°, D)
E'' = Rotate(E', 270.0*°, C)
F = Point(c'')
G = Point(c')
α = Angle(E'', D', F)
b = Segment(D', F)
d = Segment(D, G)
β = Angle(G, D, E')
I: C + (b * cos(α), b * sin(α) * sin(β))
J: C + (b * cos(α + 90.0°), b * sin(α + 90.0°) * sin(β))
K: C + (0.0, b * cos(β))
e = Segment(C, K)
f = Segment(C, I)
g = Segment(C, J)
O = (3.688671135308146, -3.610854633044967)
I' = Translate(I, Vector[Vector[C, O]])
J' = Translate(J, Vector[Vector[C, O]])
K' = Translate(K, Vector[Vector[C, O]])
L = 10 (slider from 1 to 10, step 1)
I'' = Dilate(I', L, O)
J'' = Dilate(J', L, O)
K'' = Dilate(K', L, O)
I''' = Dilate(I'', -1.0, O)
J''' = Dilate(J'', -1.0, O)
K''' = Dilate(K'', -1.0, O)
u' = Vector(I''', I'')
v' = Vector(J''', J'')
w' = Vector(K''', K'')
h_1 = Segment(D', E'')
i = Segment(D, E')
軌跡1 = Locus(I, F)
L_{axis}: L
j = true
w = Vector(O, K')
u = Vector(O, I')
v = Vector(O, J')
k = false
l = true
list1 = Sequence(CurveCartesian[x(O + t * u + s * v), y(O + t * u + s * v), t, -(L), L], s, -(L), L, 1.0)
list2 = Sequence(CurveCartesian[x(O + t * u + s * v), y(O + t * u + s * v), s, -(L), L], t, -(L), L, 1.0)
m = CurveCartesian(x(O + cos(t) * u + sin(t) * v), y(O + cos(t) * u + sin(t) * v), t, 0.0, 6.28319)
h = 6.6 (slider from 1 to 8, step 0.1)
n = CurveCartesian(x(O + cos(t) * u + sin(t) * v + h * w), y(O + cos(t) * u + sin(t) * v + h * w), t, 0.0, 6.28319)
u_0 = Vector(C, A)
J_1: O + 0.7 * u_0
J_2 = Mirror(J_1, O)
J_3: J_1 + h * w
J_4: J_2 + h * w
p = Segment(J_1, J_3)
q = Segment(J_2, J_4)
J_5: O + h * w
x_1 = -6 (slider from -10 to 10, step 0.1)
x_2 = -7.5 (slider from -10 to 10, step 0.1)
y_1 = -6 (slider from -10 to 10, step 0.1)
y_2 = 7.5 (slider from -10 to 10, step 0.1)
K_1: O + x_1 * u + y_1 * v
K_2: O + x_2 * u + y_2 * v
r = Segment(K_2, J_5)
s = Segment(J_5, K_1)
t = Segment(O, K_1)
a_1 = Segment(K_2, O)
多邊形1, k_1, j_5, o = Polygon(J_5, O, K_1)
多邊形2, k_2, j_1, o_1 = Polygon(J_5, O, K_2)