From: Павел Т. <cro...@gm...> - 2013-11-24 22:31:55
|
Hi all, Ok, so today I have to admit that I don't know what quaternions are but I <probably> will need to use them. I'm working on PyMOL and Sensable Phantom Omni haptic device integration using Virtual Reality Peripherial Network (VRPN). So far I have a nicely working plugin for PyMOL that can retreive X,Y,Z coordinates and vector of four quaternion values. My CGO pointer (cone) can smoothly move according to X,Y and Z changes. Now I need to do some rotations of the pointer. AFAIK 'rotate' function accepts only degree value of rotation around axis. My question is: is there any build in PyMOL function that accepts four quaternion values and do rotation (instead of degree for each axis)? If not: do you have any simple hint or math formulas for me :) to calculate angles for rotation of CGO out of four quaternion value? Cheers Pawel 'crooveck' Tomaszewski |