aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-03-10 15:15:03 +0100
committerThomas White <taw@physics.org>2017-03-10 15:16:57 +0100
commitc9e4b3cd8c1a9421787168ce5efb20c89e5286fd (patch)
tree2893e8b52bb3f9fc9a1a6ebb44fc9c620b433d0c /libcrystfel/src/cell-utils.c
parentad305e5a1a84a5e83edbdf30e3aba5265ca40665 (diff)
cell_print(): Show reciprocal angles
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r--libcrystfel/src/cell-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index 69d4174a..84a14b5c 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -273,6 +273,12 @@ void cell_print(UnitCell *cell)
STATUS("c* = %10.3e %10.3e %10.3e m^-1 (modulus %10.3e m^-1)\n",
csx, csy, csz, modulus(csx, csy, csz));
+ STATUS("alpha* = %6.2f deg, beta* = %6.2f deg, "
+ "gamma* = %6.2f deg\n",
+ rad2deg(angle_between(bsx, bsy, bsz, csx, csy, csz)),
+ rad2deg(angle_between(asx, asy, asz, csx, csy, csz)),
+ rad2deg(angle_between(asx, asy, asz, bsx, bsy, bsz)));
+
STATUS("Cell representation is %s.\n", cell_rep(cell));
} else {