aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-05 17:35:59 +0100
committerThomas White <taw@physics.org>2010-01-05 17:36:49 +0100
commit8a89c359ebb241d36db89acf188d130691663e51 (patch)
treed6ca62bddfc57eced23e342ce49ebaa1c9f46066 /src/cell.c
parent9a0a1c228355e0efb7f423529c11bc162b7cbafd (diff)
Introduce process_images
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index baf110a6..94c013d1 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -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)
{