diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-09-28 17:11:06 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-09-28 17:11:06 +0000 |
commit | 12271165c0948536f9b34603432ade4953c97b4e (patch) | |
tree | 8d52c7685ca99b7b836babc05b940ab537c05cf3 /src/reflections.h | |
parent | 1ed23746f6d27f648e3a5f96bf499823069fd171 (diff) |
'Satisfactory-ish' basis finding
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@135 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.h')
-rw-r--r-- | src/reflections.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/reflections.h b/src/reflections.h index 824fcba..9dd281a 100644 --- a/src/reflections.h +++ b/src/reflections.h @@ -29,16 +29,17 @@ typedef enum { typedef struct reflection_struct { - double x; - double y; - double z; - double intensity; + double x; + double y; + double z; + double intensity; - signed int h; - signed int k; - signed int l; + signed int h; + signed int k; + signed int l; - ReflectionType type; + ReflectionType type; + int found; /* This reflection has been used in the seed-finding process */ struct reflection_struct *next; /* MUST BE LAST in order for caching to work */ @@ -68,6 +69,8 @@ extern void reflection_add_from_reflection(ReflectionContext *rctx, Reflection * extern double reflection_largest_g(ReflectionContext *reflectionctx); extern int reflection_map_to_space(ImageReflection *refl, double *ddx, double *ddy, double *ddz, double *twotheta); extern Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x, double y, double z); +extern Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, double x, double y, double z, double min_distance); +extern Reflection *reflection_find_nearest_type(ReflectionContext *reflectionctx, double x, double y, double z, ReflectionType type); #endif /* REFLECTION_H */ |