Author: bugman Date: Thu Jul 2 15:25:08 2009 New Revision: 9178 URL: http://svn.gna.org/viewcvs/relax?rev=9178&view=rev Log: Bug fix for the R_to_axis_angle() function. The axis needs to be normalised. Modified: branches/frame_order/maths_fns/rotation_matrix.py Modified: branches/frame_order/maths_fns/rotation_matrix.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order/maths_fns/rotation_matrix.py?rev=9178&r1=9177&r2=9178&view=diff ============================================================================== --- branches/frame_order/maths_fns/rotation_matrix.py (original) +++ branches/frame_order/maths_fns/rotation_matrix.py Thu Jul 2 15:25:08 2009 @@ -207,6 +207,9 @@ t = matrix[0,0] + matrix[1,1] + matrix[2,2] theta = atan2(r, t-1) + # Normalise the axis. + axis = axis / r + # Return the data. return axis, theta