在此示例或任何示例中计算的中心矢量的方式如何。 WolframAlpha的:http://www.wolframalpha.com/input/?i=rotate+90+degrees+center+%283%2C0%29带中心的旋转矩阵
带中心的旋转矩阵
回答
齐次坐标:
[ cos(theta) -sin(theta) 0 ]
Rotate = [ sin(theta) cos(theta) 0 ]
[ 0 0 1 ]
[ 1 0 x ]
Translate = [ 0 1 y ]
[ 0 0 1 ]
所以要执行转换,你乘Translate(x, y) * Rotate(theta) * Translate(-x, -y)
并获得变换矩阵。
用于写入的+1 – alecnash 2012-07-31 13:09:46
您是否对旋转和x坐标偶然使用了相同的变量名? – SwiftsNamesake 2016-01-05 14:35:51
不应该是T(x,y)* R * T(-x,-y)? – Dschoni 2017-01-11 13:30:52
或者在一个功能statment
Vector RotateAbout(Vector node, Vector center, double angle)
{
return new Vector(
center.X + (node.X-center.X)*COS(angle) - (node.Y-center.Y)*SIN(angle),
center.Y + (node.X-center.X)*SIN(angle) + (node.Y-center.Y)*COS(angle)
};
}
- 1. 旋转矩阵
- 2. Matlab中的旋转矩阵
- 3. Eigen中的旋转矩阵
- 4. WebGl旋转矩阵
- 5. C#旋转矩阵
- 6. AS3矩阵旋转
- 7. 使用matplotlib旋转矩阵使用旋转矩阵
- 8. java的旋转矩形围绕中心
- 9. 旋转矩阵问题
- 10. 旋转利用矩阵
- 11. SVG旋转变换矩阵
- 12. 基本矩阵:纯旋转
- 13. 原地矩阵旋转
- 14. 仿射旋转矩阵
- 15. 旋转和OpenGL矩阵
- 16. 使用旋转矩阵opencv
- 17. OpenGL旋转矩阵和ArcBall
- 18. 旋转多维矩阵
- 19. 计算旋转矩阵
- 20. 旋转矩阵不正交
- 21. Python旋转矩阵错误
- 22. 椭圆旋转矩阵?
- 23. 如何旋转矩阵?
- 24. 在同心圆中旋转2D NxN矩阵
- 25. 如何使用矩阵在android中心点旋转位图
- 26. 矩阵中的同时旋转
- 27. C中矩形阵列的2D旋转
- 28. 旋转矩阵中的列和行
- 29. 旋转2D矩阵我想要一个二维矩阵,以旋转的权利
- 30. Android的旋转矩阵转换
你不提供呢? – Blender 2012-02-22 05:21:37
我没有睡好。添加到旋转矩阵的向量是(3,-3)我如何得到这个值,我没有通过它。 – Starfighter911 2012-02-22 06:02:47