房子
Author: 王楷騰

幸福的房子

單位向量

單位點

座標軸

x

y

z

α = 3.0410616886749198 rad (slider from 0 to 6.283185307179586, step 0.01*°)
β = 4.974188368183839 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
L = 10 (slider from 1 to 10, step 1)
O = (34.38734800425781, 8.396572597170636)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
Z_{unit}: O + (0, -sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
x_{Axis} = Vector(O - L * u, O + L * u)
y_{Axis} = Vector(O - L * v, O + L * v)
z_{Axis} = Vector(O - L * w, O + L * w)
A = (20.64, 16.56)
h = false
i = false
j = false
B_1: O - 4 * u + 0 * v + 0 * w
A_1: O + 0 * u + 0 * v + 0 * w
C_1: O - 4 * u - 4 * v + 0 * w
D_1: O + 0 * u - 4 * v + 0 * w
poly1, c_1, d_1, o, b_1 = Polygon(C_1, D_1, O, B_1)
E_1: O + 0 * u + 0 * v + 4 * w
F_1: O - 4 * u + 0 * v + 4 * w
G_1: O - 4 * u - 4 * v + 4 * w
H_1: O + 0 * u - 4 * v + 4 * w
a = Segment(E_1, H_1)
b = Segment(H_1, G_1)
c = Segment(G_1, F_1)
d = Segment(F_1, E_1)
e = Segment(D_1, H_1)
f = Segment(O, E_1)
g = Segment(C_1, G_1)
m = Segment(B_1, F_1)
poly2, c_2, g_1, h_1, d_2 = Polygon(C_1, G_1, H_1, D_1)
poly3, c_3, g_2, f_1, b_2 = Polygon(C_1, G_1, F_1, B_1)
poly4, a_1, e_1, f_2, b_3 = Polygon(A_1, E_1, F_1, B_1)
poly5, a_2, e_2, h_2, d_3 = Polygon(A_1, E_1, H_1, D_1)
Z_1: O - 2 * u - 2 * v + 6 * w
poly6, e_3, z_1, h_3 = Polygon(Z_1, H_1, E_1)
poly7, e_4, z_2, f_3 = Polygon(Z_1, F_1, E_1)
poly8, h_4, z_3, g_3 = Polygon(Z_1, G_1, H_1)
poly9, f_4, z_4, g_4 = Polygon(Z_1, G_1, F_1)