>> I may send you some very small code snippets and ask you to comment on
>> them.
>
> No problem.
Dan,
The following code is from the r5 relase of Jmol ... before I checked in
any changes to cvs.
==========================
In the transformation process, the vector is being scaled by a factor of 2
and then added to the position of the atom.
Atom.java
---------
public void transform(Matrix4d transformationMatrix) {
transformationMatrix.transform(position, screenPosition);
if (vector != null) {
screenVector.scaleAdd(2.0f, vector, position);
transformationMatrix.transform(screenVector);
}
}
Q: Why are the vectors being scaled by a factor of 2?
Q: Is this the correct (or most useful) screen visualization?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers