aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflections.h')
-rw-r--r--src/reflections.h19
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 */