calculates equivalent Q point in twins

Syntax

[qTwin, rotQ] = twinq(obj, {Q0})

Description

[qTwin, rotQ] = twinq(obj, {q0}) calculates the values in the twin coordinate systems, in rlu. It also returns the rotation matrices, that transforms the point from the original lattice to the selected twin rlu coordinate system.

Examples

This example Calculates the and Bragg reflections equivalent positions in the twins.

Q1 = [1 0 0; 1 1 0];
Q2 = cryst.twinq(Q1');

Input Arguments

Q0
values in the original crystal in rlu sotred in a matrix with dimensions of , optional.

Output Arguments

Qtwin
values in the twin oordinate system in a cell element for each twin.
rotQ
Rotation matrices with dimensions of .

See Also

spinw | spinw.addtwin