aboutsummaryrefslogtreecommitdiff
path: root/src/scattering.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scattering.h')
-rw-r--r--src/scattering.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scattering.h b/src/scattering.h
index 308f8ef..65765b0 100644
--- a/src/scattering.h
+++ b/src/scattering.h
@@ -1,6 +1,11 @@
#ifndef SCATTERING_H
#define SCATTERING_H
+/* Maximum value for the scattering RMS `theta0`.
+ *
+ * This is to prevent the interpolation from going out of bounds. */
+#define MAX_THETA0 1.0
+
void init_interpolation(void);
double get_probability(double beta, double cos_theta, double theta0);
double get_probability2(double beta);