transformReferenceFrame edit page

change reference frame of an orientation

Orientations are always described with respect to a cartesian reference frame x, y, z aligned in a fixed way with the crystal coordiante system a, b, c. Typical alignments are x||a and z||c* or x||a* and z||c. This function allows to change the aligment of the reference frame while NOT changing the orientation.


ori = ori.transformReferenceFrame(cs)
mori = mori.transformReferenceFrame(cs1,cs2)


ori orientation
mori misorientation
cs, cs1, cs2 crystalSymmetry