aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-10-14 11:22:49 +0200
committerThomas White <taw@bitwiz.org.uk>2009-10-14 11:22:49 +0200
commitbea1c6e44c2fcce080a1a91c0490f3eb5d01146d (patch)
tree676f95d9635dc092a78b60485375543aca7560ad /src/cell.c
parenta3efcb98a5c165307cc28749e26bffc12ebbf245 (diff)
Get the lattice parameters into relrod.c
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index d2495b0f..6fa91cd3 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -146,3 +146,16 @@ UnitCell *cell_new_from_parameters(double a, double b, double c,
return cell;
}
+
+
+void cell_get_cartesian(UnitCell *cell,
+ double *ax, double *ay, double *az,
+ double *bx, double *by, double *bz,
+ double *cx, double *cy, double *cz)
+{
+ if ( !cell ) return;
+
+ *ax = cell->ax; *ay = cell->ay; *az = cell->az;
+ *bx = cell->bx; *by = cell->by; *bz = cell->bz;
+ *cx = cell->cx; *cy = cell->cy; *cz = cell->cz;
+}