javascript - if I rotate the cylinder in x, then y and then z in different theta. What will be the height in y axis for the final cylinder? -
i new three.js , in three.js when created cylinder parallel y axis default, give height in y axis value a.
and if rotate cylinder in x, y , z in different theta. height in y axis final cylinder (like code below)?
i tried cannot find answer. answers. :)
cylinder.rotation.x = theta1; cylinder.rotation.y = theta2; cylinder.rotation.z = theta3;
you ask question on mathematics stack exchange, or execute following code (plug in x, y, , z values). in example, our cylinder 1.0 height along positive y axis:
var x = 0.0; var y = 1.0; var z = 0.0; var e = new three.euler(theta1, theta2, theta3); var p = new three.vector3(x, y, z); p.applyeuler(e); console.log(e);
Comments
Post a Comment