0ut0fcontrol / sharing

sharing files.
MIT License
0 stars 0 forks source link

random conf #4

Open 0ut0fcontrol opened 3 years ago

0ut0fcontrol commented 3 years ago

三维空间中的旋转空间SO(3)等价于四维空间中的单位半球面,所以可以用一个单位四元数(quaternion)表示。

smina中生成随机单位四元数见 conf.randomize(), random_orientation()

将四元数转为旋转矩阵见quaternion_to_r3(), 旋转构象坐标见conf.apply().