Hi, researchers,
Recently, I want to use softwares to simulate S/TEM images, but encounter some problems when building the crystal structure.This software considers the beam direction is always along the 3rd (z) direction of the cell, defaultly. Thus, if I want to simulate other certain directions of the cell, such as 110 or 111, I should rotate the crystal to this zone axis and obtain the new-XYZ coordinates of atoms to build the crystal structure files.
For some special directions, such as 100 or 010, I know the transformation matrix
0 0 1
1 0 0
0 1 0
for 010 direction.
But, as to those more general directions,such as 110, 103, or 310, it is beyond my knowledge I think.
I know some software can realize this rotation, such as Vesta or MS, but what is the matrix is the key point. I find a tool (Fig.1) and can get the angles of the rotation, but still do not know how to write the matrix for the rotation of general directions.
I hope to get some help here and will appreciate it if anyone can give me some hints.
I attach the XYZ file.
Best regards