you have this matrix? The columns of the rotation matrix are vectors.
There's a very easy way to convert the matrix to a quaternion in Jmol
11.7. You just indicate the first two columns of the rotation matrix,
since those represent the X and Y axes of the "frame" that defines the
rotation.

var c = {x y z} // the center
var q = quaternion({1 0 0} {0 -1 0})

for example. Once you have that you just do

center @c
rotate @q

or, if you don't want to define c and q:

center {x y z}
rotate @{quaternion({1 0 0} {0 -1 0})}

This is Jmol 11.7, not 11.6.

Bob



On Wed, Jan 14, 2009 at 5:38 AM, Eran Hodis <[email protected]> wrote:
> Does anyone know if it's possible to provide Jmol with a rotation matrix and
> center of rotation in order to change the view?
> Thanks,
> Eran
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to