commit 63c7cad7dc5b2215d0f6e826beecb5990f738e3d
parent 909e743399ed2d7d5fc512e0496b5d8420644c2d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 4 Nov 2022 12:35:47 +0100
Add missing constants to the API
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/rnatm.h b/src/rnatm.h
@@ -133,6 +133,11 @@ struct rnatm_sample_component_args {
double k_min;
double k_max;
};
+#define RNATM_SAMPLE_COMPONENT_ARGS_NULL__ { \
+ {0,0,0}, 0, 0, RNATM_RADCOEFS_COUNT__, 0, -DBL_MAX, DBL_MAX \
+}
+static const struct rnatm_sample_component_args
+RNATM_SAMPLE_COMPONENT_ARGS_NULL = RNATM_SAMPLE_COMPONENT_ARGS_NULL__;
struct rnatm_cell_get_radcoef_args {
struct rnatm_cell cell; /* Cell to query */
@@ -162,6 +167,11 @@ struct rnatm_cell_create_phase_fn_args {
double wavelength; /* In nm */
double r[2]; /* Random numbers uniformaly distributed in [0, 1[ */
};
+#define RNATM_CELL_CREATE_PHASE_FN_ARGS_NULL__ { \
+ RNATM_CELL_NULL__, {0,0,0,0}, 0, {0,0} \
+}
+static const struct rnatm_cell_create_phase_fn_args
+RNATM_CELL_CREATE_PHASE_FN_ARGS_NULL = RNATM_CELL_CREATE_PHASE_FN_ARGS_NULL__;
struct rnatm_trace_ray_args {
double ray_org[3]; /* Origin of the ray */