ДЛ
Size: a a a
ДЛ
ВВ
ДЛ
AV
ВВ
ВВ
ВВ
KP
RK
AL
RK
🛰
🛰
function rotate(t1,t2,t3,t4,t5){
for(var i of dots){
var x = i.x; var z = i.z
i.x = x*Math.cos(t1)-(z+d+l1/2)*Math.sin(t1)
i.z = (z+d+l1/2)*Math.cos(t1)+x*Math.sin(t1) - (d+l1/2)
🛰
function dot(x,y,z,v){ //структура: 4D точка
this.x = x
this.y = y
this.z = z
this.v = v
}
🛰
var dots = [
new dot(-w1/2,-h1/2,-d,-u), new dot(w1/2,-h1/2,-d,-u), new dot(-w1/2,h1/2,-d,-u),new dot(w1/2,h1/2,-d,-u),
new dot(-w1/2,-h1/2,-(d+l1),-u), new dot(w1/2,-h1/2,-(d+l1),-u), new dot(-w1/2,h1/2,-(d+l1),-u), new dot(w1/2,h1/2,-(d+l1),-u),
new dot(-w1/2,-h1/2,-d,-(u+u1)), new dot(w1/2,-h1/2,-d,-(u+u1)), new dot(-w1/2,h1/2,-d,-(u+u1)),new dot(w1/2,h1/2,-d,-(u+u1)),
new dot(-w1/2,-h1/2,-(d+l1),-(u+u1)), new dot(w1/2,-h1/2,-(d+l1),-(u+u1)), new dot(-w1/2,h1/2,-(d+l1),-(u+u1)), new dot(w1/2,h1/2,-(d+l1),-(u+u1))
]
🛰
🛰
🛰
🛰
AV