algorithm - 如何使用轴作为 HINGE 在 3d 空间中旋转矩形?

标签 algorithm 3d geometry graphics2d rotation

我期待通过数学或算法计算将具有固定轴的矩形旋转为 HINGE。如下图所示。

I have positions (x,y) of 4 points of rectangle vertices, and the origin is center of the rectangle, so the desired algorithm will project my original shape's vertices into the desire shape vertices. (Please see image below)

我知道使用 3d 库很容易做到这一点,但我需要使用高级编程语言(如 .Net 或 JAVA 或其他没有任何 3d 或补充库的语言)使用 2d 图形来做到这一点。

请帮助我提供任何想法或引用,或者比所有源代码或算法更好。

enter image description here

提前感谢您的宝贵时间。

最佳答案

关于algorithm - 如何使用轴作为 HINGE 在 3d 空间中旋转矩形?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10758226/

相关文章:

python - 使用 Cython 处理可变大小的列表

c++ - STL 算法与纯代码

c++ - 如何使用 __builtin_ctz 加速二进制 GCD 算法?

c# - 将欧拉转换为矩阵并将矩阵转换为欧拉

algorithm - 在网格中查找彼此之间一定距离内的顶点

android - 如何检查 Libgdx 中图像中圆圈的触摸点?

c++ - C++判断3条边是否构成三角形

c++ - 随机选择一个空的 vector 元素,如果可以事先知道哪些元素是满的

algorithm - 比较两个 3Dmesh

javascript - 在球体表面堆积不规则圆