diff options
author | Thomas White <taw@physics.org> | 2010-01-05 17:35:59 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-05 17:36:49 +0100 |
commit | 8a89c359ebb241d36db89acf188d130691663e51 (patch) | |
tree | d6ca62bddfc57eced23e342ce49ebaa1c9f46066 /src/cell.c | |
parent | 9a0a1c228355e0efb7f423529c11bc162b7cbafd (diff) |
Introduce process_images
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -146,6 +146,36 @@ void cell_set_cartesian(UnitCell *cell, } +void cell_set_cartesian_x(UnitCell *cell, double ax, double bx, double cx) +{ + if ( !cell ) return; + + cell->ax = ax; cell->bx = bx; cell->cx = cx; + + cell_update_crystallographic(cell); +} + + +void cell_set_cartesian_y(UnitCell *cell, double ay, double by, double cy) +{ + if ( !cell ) return; + + cell->ay = ay; cell->by = by; cell->cy = cy; + + cell_update_crystallographic(cell); +} + + +void cell_set_cartesian_z(UnitCell *cell, double az, double bz, double cz) +{ + if ( !cell ) return; + + cell->az = az; cell->bz = bz; cell->cz = cz; + + cell_update_crystallographic(cell); +} + + UnitCell *cell_new_from_parameters(double a, double b, double c, double alpha, double beta, double gamma) { |