在这个例子或任何例子中中心向量是如何计算的。沃尔夫拉姆阿尔法: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/