关于javascript向量旋转,我有两个问题:
vec=vec.rotateX(angle0);
vec=vec.rotateY(angle1);
vec=vec.rotateZ(angle2);1) javascript是以度还是弧度旋转向量?
2)这3条线如何将旋转向量平移到另一个向量?比如vec = vec.rotate(angle,new Vector(1,0,0))?对于角度1
3) javascript中有没有关于向量旋转的文档?我想要理解其中的逻辑。
发布于 2018-08-06 22:10:34
它的学位相当于
Vector3d vec =新Vector3d(1.15,58.1,7.58);vec.Rotate(Rhino.RhinoMath.ToRadians(10.4),Vector3d.XAxis);
vec.Rotate(Rhino.RhinoMath.ToRadians(15.3),Vector3d.YAxis);
vec.Rotate(Rhino.RhinoMath.ToRadians(17.7),Vector3d.ZAxis);
https://stackoverflow.com/questions/51709229
复制相似问题