空間中的距離(2)
Author: 藍邦偉  老師

x

y

z

顯示座標平面

顯示單位向量

顯示座標軸

1

3

2

空間中的距離(2)

P (

1

2

3

4

5

6

,

,

)

Q(

,

,

)

Reset

x

y

z

A: (x((Corner[3] + 39 * Corner[4]) / 40), y((Corner[1] + 9 * Corner[4]) / 10))
B: (x((4 * Corner[3] + 16 * Corner[4]) / 20), y((Corner[1] + 9 * Corner[4]) / 10))
a = Segment(A, B)
C: (3 * A + B) / 4
D: (3 * B + A) / 4
E = Point(a)
c = Circle(C, E)
c' = Translate(c, Vector[C, D])
A' = Rotate(A, 270*°, C)
B' = Rotate(B, 270*°, C)
a' = Segment(A', B')
c'' = Rotate(c', 270*°, C)
D' = Rotate(D, 270*°, C)
E' = Rotate(Translate[E, Vector[C, D]], 90*°, D)
E'' = Rotate(E', 270*°, 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°), b * sin(α + 90°) * sin(β))
K: C + (0, b * cos(β))
e = Segment(C, K)
f = Segment(C, I)
g = Segment(C, J)
O = (-0.6900630935669386, -3.174458245509346)
I' = Translate(I, Vector[C, O])
J' = Translate(J, Vector[C, O])
K' = Translate(K, Vector[C, O])
L = 10 (slider from 1 to 12, step 1)
I'' = Dilate(I', L, O)
J'' = Dilate(J', L, O)
K'' = Dilate(K', L, O)
I''' = Dilate(I'', -1, O)
J''' = Dilate(J'', -1, O)
K''' = Dilate(K'', -1, O)
u' = Vector(I''', I'')
v' = Vector(J''', J'')
w' = Vector(K''', K'')
h = 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 = false
list1 = Sequence(CurveCartesian[x(O + t * u + s * v), y(O + t * u + s * v), t, -L, L], s, -L, L, 1)
list2 = Sequence(CurveCartesian[x(O + t * u + s * v), y(O + t * u + s * v), s, -L, L], t, -L, L, 1)
C_a: C + (b * cos(α + 10°), b * sin(α + 10°) * sin(β))
C_b: C + (b * cos(α + 20°), b * sin(α + 20°) * sin(β))
C_c: C + (b * cos(α + 30°), b * sin(α + 30°) * sin(β))
C_d: C + (b * cos(α + 40°), b * sin(α + 40°) * sin(β))
C_e: C + (b * cos(α + 50°), b * sin(α + 50°) * sin(β))
p = Conic(C_a, C_b, C_c, C_d, C_e)
W_1: O + L * u + L * v
W_2: O + L * u
W_3: O + L * v
W_4: O + L * u + L * w
W_5: O + L * v + L * w
W_6: O + L * w
多邊形1, o, w_2, w_1, w_3 = Polygon(O, W_2, W_1, W_3)
多邊形2, o_1, w_6, w_5, w_4 = Polygon(O, W_6, W_5, W_3)
多邊形3, o_2, w_7, w_8, w_9 = Polygon(O, W_2, W_4, W_6)
x_1 = 1 (slider from 0 to 5, step 1)
x_2 = 6 (slider from 6 to 10, step 1)
y_1 = 1 (slider from 0 to 5, step 1)
z_1 = 1 (slider from 0 to 5, step 1)
y_2 = 6 (slider from 6 to 10, step 1)
z_2 = 6 (slider from 6 to 10, step 1)
P: O + x_1 * u + y_1 * v + z_1 * w
Q: O + x_2 * u + y_2 * v + z_2 * w
m = Segment(P, Q)
P_3: O + x_1 * u + y_1 * v
P_4: O + x_2 * u + y_2 * v
n = Segment(P_3, P_4)
q = Segment(Q, P_4)
r = Segment(P, P_3)
P_5: O + x_1 * u + z_1 * w
P_6: O + x_2 * u + z_2 * w
s = Segment(P_6, P_5)
t = Segment(P_6, Q)
a_1 = Segment(P_5, P)
P_7: O + y_1 * v + z_1 * w
P_8: O + y_2 * v + z_2 * w
b_1 = Segment(P_7, P_8)
c_1 = Segment(Q, P_8)
d_1 = Segment(P_7, P)
e_1 = Line(P, n)
H = Intersect(e_1, q)
f_1 = Line(P, s)
M = Intersect(f_1, t)
g_1 = Segment(P, H)
h_1 = Segment(P, M)
i_1 = Line(P, b_1)
N = Intersect(i_1, c_1)
j_1 = Segment(N, P)
P_a: O + x_1 * u
P_b: O + x_2 * u
P_c: P_b + P_3 - P_a
k_1 = Segment(P_4, P_b)
l_1 = Segment(P_3, P_a)
m_1 = Segment(P_3, P_c)
z = false
n_1 = Segment(P_6, P_b)
p_1 = Segment(P_5, P_a)
P_d: P_b + P_5 - P_a
q_1 = Segment(P_d, P_5)
r_1 = false
P_e: O + y_1 * v
P_f: O + y_2 * v
P_g: P_7 + P_f - P_e
s_1 = Segment(P_8, P_f)
t_1 = Segment(P_7, P_e)
a_2 = Segment(P_7, P_g)
u_1 = false
inputBox1 = Textfield(x_1)
inputBox2 = Textfield(y_1)
inputBox3 = Textfield(z_1)
inputBox4 = Textfield(x_2)
inputBox5 = Textfield(y_2)
inputBox6 = Textfield(z_2)