Skip to content
Snippets Groups Projects
Commit facf9e06 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

gtTwinTest : add angle calculation between grains using atan2 function


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@802 4c865b51-4357-4376-afb4-474e03ccb993
parent 6b00d709
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,8 @@ hkil(4) = hkil(4) / (1/parameters.cryst(phaseid).latticepar(3));
out.mis_axis_hex = hkil;
out.sym = sym;
out.angle = rad2deg(atan2(norm(cross(R1,R2)), dot(R1,R2)));
out.center1 = grain{grain1}.center/pxsize;
out.center2 = grain{grain2}.center/pxsize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment