Quoting "J. Fleming" <[email protected]>:
Hello Jon & ML,
> print cmd.get_object_matrix("A")
>
> How do I go from the matrix to an angle and distance?
according to
http://www.pymolwiki.org/index.php/Get_object_matrix
you should recieve a 4x4 matrix which contains the inital and target
translation as lower and right vector. Their difference should be the
translation. The 3x3 top-left ist the rotation matrix.
The angular extraction depends on which angle(s) you're interested in.
If you e.g. have a vector, that describes you inital orientation
(along a helix), you can transform it via the rotation matrix and then
determine the angle between both.
If youre interested in the rotation axis and the angle, have a look
into "Finding the rotation matrix"
http://en.wikipedia.org/wiki/Rotation_matrix
Hope this helps.
Best
Martin
------------------------------------------------------------------------------
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]