Author: 藍邦偉  老師

單位向量

座標軸

Reset

Step 1

x

γ = 0.6154797086223096 rad (slider from 35.26438968*° to 90*°, step 0.01*°)
O = (9.274860688832987, 3.302760767551289)
C_2: O
β = 1.3962634015954636 rad (slider from 0 to 6.283185307179586, step 0.017)
Z_{unit}: O + (0, sin(β))
w = Vector(O, Z_{unit})
α = 4.369 rad (slider from 0 to 6.283185307179586, step 0.017)
Y_{unit}: O + (-1 * sin(α), cos(α) * cos(β))
v = Vector(O, Y_{unit})
X_{unit}: O + (cos(α), sin(α) * cos(β))
u = Vector(O, X_{unit})
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 = Vector(O - L * u, O + L * u)
c = false
d = true
Q_2: 0.2 * Corner[2] + 0.8 * Corner[1]
Q_3: (x(Q_2), y(Corner[3]))
多邊形1, e, q_2, q_3, f = Polygon(Corner[1], Q_2, Q_3, Corner[4])
g = Segment(Q_2, Q_3)
h = 4 (slider from 0 to 4, step 0.01)
r = 5
P_1: O + 4 * v + 4 * u - h * v
P_5: O + 4 * v + 4 * u + 4 * w - h * v
P_6: O + 4 * v + 4 * w - h * v
P_2: O + 4 * v - h * v
P_4: O + 8 * v + 4 * u - h * v
P_8: O + 8 * v + 4 * u + 4 * w - h * v
P_7: O + 8 * v + 4 * w - h * v
P_3: O + 8 * v - h * v
i, j = SDLine(P_8, P_4, P_5, P_7)
k_2, l = SDLine(P_5, P_8, P_1, P_6)
m, n = SDLine(P_7, P_8, P_6, P_3)
p, q = SDLine(P_7, P_3, P_8, P_6)
s, t = SDLine(P_5, P_1, P_6, P_8)
a_1, b_1 = SDLine(P_6, P_2, P_7, P_5)
c_1, d_1 = SDLine(P_7, P_6, P_3, P_8)
e_1, f_1 = SDLine(P_5, P_6, P_8, P_1)
g_1, h_1 = SDLine(P_1, P_2, P_5, P_4)
i_1, j_1 = SDLine(P_3, P_2, P_4, P_7)
k_1, l_1 = SDLine(P_4, P_3, P_1, P_8)
m_1, n_1 = SDLine(P_4, P_1, P_8, P_3)
o = false
W_1: O + 4 * sqrt(3) * w
W_2: O + 4 * u + 4 * v + 4 * w
C_1: C_2 - 4 * v + 4 * (cos(γ - 35.26°) * u + cos(γ - 35.26°) * v + sin(γ - 35.26°) * w)
C_8: C_2 + 4 * sqrt(3) * (cos(45°) * cos(γ) * u + cos(45°) * cos(γ) * v + sin(γ) * w)
C_4: C_2 + 4 * sqrt(2) * (cos(45°) * cos(γ - 35.26°) * u + cos(45°) * cos(γ - 35.26°) * v + sin(γ - 35.26°) * w)
k = Segment(C_8, C_4)
C_3: C_2 - 4 * u + 4 * (cos(γ - 35.26°) * u + cos(γ - 35.26°) * v + sin(γ - 35.26°) * w)
p_1 = Segment(C_3, C_4)
C_7: C_3 + C_8 - C_4
q_1 = Segment(C_3, C_7)
r_1 = Segment(C_8, C_7)
C_5: C_1 + C_8 - C_4
C_6: C_5 + C_7 - C_8
s_1 = Segment(C_4, C_1)
t_1 = Segment(C_5, C_1)
a_2 = Segment(C_5, C_6)
b_2 = Segment(C_7, C_6)
c_2 = Segment(C_5, C_8)
d_2 = Segment(C_2, C_6)
e_2 = Segment(C_2, C_1)
f_2 = Segment(C_2, C_3)

Tool: SDLine
Input: A, B, C, D
Output: g, h

b: sgn(sin(Angle[D, B, A]))
a: sgn(sin(Angle[A, B, C]))
c: sgn(a + b + 0.5)
d: sqrt(c)
e: sqrt(-c)
E = Midpoint(A, B)
A' = Dilate(A, d, E)
B' = Dilate(B, d, E)
g = Segment(A', B')
A'_1 = Dilate(A, e, E)
B'_1 = Dilate(B, e, E)
h = Segment(A'_1, B'_1)