diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-10-14 11:22:49 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-10-14 11:22:49 +0200 |
commit | bea1c6e44c2fcce080a1a91c0490f3eb5d01146d (patch) | |
tree | 676f95d9635dc092a78b60485375543aca7560ad /src/cell.c | |
parent | a3efcb98a5c165307cc28749e26bffc12ebbf245 (diff) |
Get the lattice parameters into relrod.c
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; +} |