【发布时间】:2021-11-06 13:40:13
【问题描述】:
我正在尝试找到一个方程式,该方程式将帮助我找到一个长方形棱柱在其围绕x,y, and z 维度中的中心点旋转后的顶点。
例如,我得到一个边为lengths: l = 10, w =4, h = 1 (l corresponding to x axis, w to y axis, and h to z axis ) 的矩形棱柱。我也知道棱镜一直是rotated30 degrees about the x axis、45 degrees about the y axis 和20 degrees about the z axis. 如果我的中心point is (1,3,5),我想找到一个方程来确定棱镜旋转后我的每个顶点将在哪里结束完全。
我在2 dimensions 中找到了许多可以给我答案的资源,但我还没有看到可以帮助我在我正在寻找的所有3 dimensions 中找到这个等式的资源。
任何帮助将不胜感激! (我不一定需要上面给出的例子的答案,只是一个如何解决它的方程会对我有很大帮助!)
【问题讨论】:
-
也许你可以看看这个 - khanacademy.org/computing/computer-programming/…
-
我已经研究过了,看来这个来源只有在我已经知道我不知道的棱镜的所有顶点时才有用。
标签: python algorithm matrix rotation