quaternion.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:joysix 作者: niberger 项目源码 文件源码
def log(q):
    im = q.im()
    imn = np.linalg.norm(im)
    n = math.atan2(imn, q.w)
    if(abs(n) < 1e-6):
        return 2*im
    else:
        return 2*(n/imn)*im
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号