[phenixbb] Super: Rotation and translation

Ralf W. Grosse-Kunstleve rwgk at cci.lbl.gov
Fri May 28 20:53:59 PDT 2010


Hi Jon,

This will give you the rotation axis and angle:

import scitbx.math
r=(
  0,0,1,
  1,0,0,
  0,1,0)
from_matrix = scitbx.math.r3_rotation_axis_and_angle_from_matrix(r=r)
print from_matrix.axis
print from_matrix.angle(deg=True)

Run with "phenix.python".

Ralf



More information about the phenixbb mailing list