crystalFrame.transformationMatrix edit page

the transition matrix taking coordinates from frame rf1 to frame rf2

On top of the pure frame transition this establishes the correspondence of the crystal axes first: when the axis lengths a, b, c of the two frames do not agree within 1%, the axes of rf1 are re-paired with those of rf2 by nearest length - this is how e.g. the monoclinic settings '121' and '112' relate.

Syntax

M = transformationMatrix(rf1,rf2)

Input

rf1, rf2 crystalFrame

Output

M 3x3 transformation matrix from rf1 to rf2

See also

referenceFrame.transformationMatrix referenceFrame.isCompatible