使用R找到一个向量的旋转矩阵

时间:2017-02-28 22:56:32

标签: r rotation geometry

我想用R计算两个n维向量之间的一个(任意)旋转矩阵。

1 个答案:

答案 0 :(得分:2)

https://math.stackexchange.com/questions/598750/finding-the-rotation-matrix-in-n-dimensions包括一个Matlab算法,该算法允许找到一个旋转矩阵,将矢量 x 转换为另一个矢量 y 。代码可以转换为R:

def Button3():
    os.startfile('procexp.exe')
def Button4():
    os.startfile('IJ.exe')
def Button5():
    os.startfile('Br.exe')
def Button6():
    os.startfile('Cs.exe')