diff options
author | Thomas White <taw@physics.org> | 2009-12-04 11:54:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-12-04 12:01:32 +0100 |
commit | fe414fa905261a11b1af2055c1e871d2d7f826f2 (patch) | |
tree | 777ca510fc8e38aa3fccfec3e30bea79d01c7735 /src/cell.c | |
parent | 8e6c782d1728d730b94634bc8919d55e8376ce20 (diff) |
Add --zone-axis option
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -115,6 +115,22 @@ void cell_set_parameters(UnitCell *cell, double a, double b, double c, } +void cell_get_parameters(UnitCell *cell, double *a, double *b, double *c, + double *alpha, double *beta, double *gamma) +{ + if ( !cell ) return; + + *a = cell->a; + *b = cell->b; + *c = cell->c; + *alpha = cell->alpha; + *beta = cell->beta; + *gamma = cell->gamma; + + cell_update_cartesian(cell); +} + + void cell_set_cartesian(UnitCell *cell, double ax, double ay, double az, double bx, double by, double bz, |