Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Miguel
> I'm told by a colleague who really does know how to do this that "his > favorite > way" to do rotations is to use quaternions. See > > http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation > > Does this help? I know that quaternions are a contraversial subject. As I understand it, some

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Miguel
> matrix inversion. (This is a 4x4 translation matrix, right?) yes, 4x4. > A^-1 * A = I > > so > > A^-1 * A * ? = A^-1 * B > > ? = A^-1 * B > > I think, anyway. The inverse is trivial to write. Almost no calculation. If that is all it is then that is great. Matrix multiplication is not commuta

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Bob Hanson
I'm told by a colleague who really does know how to do this that "his favorite way" to do rotations is to use quaternions. See http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation Does this help? Bob Miguel wrote: I'm volunteering, but I need a very specific goal. Exactly what is being a

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Bob Hanson
matrix inversion. (This is a 4x4 translation matrix, right?) A^-1 * A = I so A^-1 * A * ? = A^-1 * B ? = A^-1 * B I think, anyway. The inverse is trivial to write. Almost no calculation. See http://www1.cs.columbia.edu/~allen/F03/NOTES/frames.pdf http://www1.cs.columbia.edu/~allen/F03/NOTES/equivax

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Miguel
>> I'm volunteering, but I need a very specific goal. Exactly what is being >> asked? >> Are we trying to do smooth animation or a sudden jump? Does the current user-influenced rotation status need to be a starting point? (Miguel, have you > > An elegant and smooth rotation from the current positio

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Jaime Prilusky
According to Bob Hanson: > I'm volunteering, but I need a very specific goal. Exactly what is being asked? > Are we trying to do smooth animation or a sudden jump? Does the current > user-influenced rotation status need to be a starting point? (Miguel, have you An elegant and smooth rotation fro

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Bob Hanson
Miguel wrote: As long as Jmol knows internally the coordinates and position for every element, it should be possible for Jmol, by receiving the info on "TYR 97, Chain A, Model 1", to rotate the model if needed and to locate, in the center of the applet, the residue pointing to the user. Is there

Re: [Jmol-developers] model rotation and other wishes

2004-09-09 Thread Miguel
Jaim wrote: > Take a look to http://bip.weizmann.ac.il/oca-docs/jmoltest/jmol3.html > > Now, lets say that I want to bring the attention of the user to a > residue that's at this very moment on the other side of the molecule: > TYR 97, Chain A, Model 1. It's colored red, part of a group of > three

[Jmol-developers] model rotation and other wishes

2004-09-09 Thread Jaime Prilusky
Take a look to http://bip.weizmann.ac.il/oca-docs/jmoltest/jmol3.html Now, lets say that I want to bring the attention of the user to a residue that's at this very moment on the other side of the molecule: TYR 97, Chain A, Model 1. It's colored red, part of a group of three or four. You may see