mailr22994 - /trunk/lib/frame_order/rotor_axis.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on May 06, 2014 - 16:32:
Author: bugman
Date: Tue May  6 16:32:46 2014
New Revision: 22994

URL: http://svn.gna.org/viewcvs/relax?rev=22994&view=rev
Log:
Fixed the rotor axis direction in the lib.frame_order.rotor_axis module.

The normalisation code has also been simplified.

Modified:
    trunk/lib/frame_order/rotor_axis.py

Modified: trunk/lib/frame_order/rotor_axis.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/frame_order/rotor_axis.py?rev=22994&r1=22993&r2=22994&view=diff
==============================================================================
--- trunk/lib/frame_order/rotor_axis.py (original)
+++ trunk/lib/frame_order/rotor_axis.py Tue May  6 16:32:46 2014
@@ -49,12 +49,12 @@
     """
 
     # The point-pivot unit vector - the norm of the system (the pivot is 
defined as the point on the axis closest to the point).
-    n = point - pivot
-    n = n / norm(n)
+    n = pivot - point
+    n /= norm(n)
 
     # The vector perpendicular to the CoM-pivot vector and in the xy plane.
     mu_xy = cross(n, Z_AXIS)
-    mu_xy = mu_xy / norm(mu_xy)
+    mu_xy /= norm(mu_xy)
 
     # Rotate the vector about the CoM-pivot axis by the angle alpha.
     axis_angle_to_R(n, alpha, R)




Related Messages


Powered by MHonArc, Updated Tue May 06 16:40:02 2014