15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_UTILS_NUMERICUTILS_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_UTILS_NUMERICUTILS_H
18 #include "mvvm/model_export.h"
25 MVVM_MODEL_EXPORT
bool AreAlmostEqual(
double a,
double b,
double tolerance_factor = 1.0);
28 MVVM_MODEL_EXPORT
int RandInt(
int low,
int high);
31 MVVM_MODEL_EXPORT
double RandDouble(
double low,
double high);
MVVM_MODEL_EXPORT bool AreAlmostEqual(double a, double b, double tolerance_factor=1.0)
Returns true if two doubles agree within epsilon*tolerance.
MVVM_MODEL_EXPORT double RandDouble(double low, double high)
Produces random FLOAT values uniformly distributed on the interval [low, high).
MVVM_MODEL_EXPORT int RandInt(int low, int high)
Produces random integer values uniformly distributed on the closed interval [low, high].
materialitems.h Collection of materials to populate MaterialModel.