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)