math - 带中心的旋转矩阵

标签 math vector matrix

在这个例子或任何例子中中心向量是如何计算的。沃尔夫拉姆阿尔法: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) 并获得转换矩阵。

关于math - 带中心的旋转矩阵,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9389453/

相关文章:

c++ - vector 的 STL vector - 好主意吗?调整 "inner" vector 大小的机制?

c++ - 从 vector 中删除元素并将该元素添加到新的 vector c++

matlab - MATLAB 中的逐元素矩阵复制

c++ - 如何阅读 uniform_int_distribution 的概率质量函数?

java - 12.1 可以精确地表示为一个 float 吗?

c++ - 如果 T 不可 move ,则 std::vector<T> 是否可 move ?

matlab - 在 MATLAB 中转换矩阵

Python Pandas - 从数据框创建用于乘法的数组或矩阵

algorithm - 您如何确定该算法的平均情况复杂度?

c# - 在 C# 中反转数字