From da1167955e843460414cc6caa2af0979f36caf4c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 19 Nov 2009 19:26:56 +0100 Subject: Add rotation based on quaternions --- src/image.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h index b40f8a57..5206048a 100644 --- a/src/image.h +++ b/src/image.h @@ -57,6 +57,15 @@ struct threevec }; +struct quaternion +{ + double w; + double x; + double y; + double z; +}; + + /* Structure describing an image */ struct image { @@ -67,11 +76,7 @@ struct image { double *twotheta; struct molecule *molecule; - /* Radians. Defines where the pattern lies in reciprocal space */ - double tilt; - - /* Radians. Defines where the pattern lies in reciprocal space */ - double omega; + struct quaternion orientation; /* Image parameters can be given as camera length or pixel size. * If FORMULATION_CLEN, then camera_len and resolution must be given. -- cgit v1.2.3