diff options
author | Thomas White <taw@physics.org> | 2009-11-19 19:26:56 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-19 19:26:56 +0100 |
commit | da1167955e843460414cc6caa2af0979f36caf4c (patch) | |
tree | 6db15ed6e64f327b9520770b828af4d41389f9ce /src/image.h | |
parent | 377810c338e2f84d0ebc4b44086eb8ecf5f6741d (diff) |
Add rotation based on quaternions
Diffstat (limited to 'src/image.h')
-rw-r--r-- | src/image.h | 15 |
1 files changed, 10 insertions, 5 deletions
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. |