2022-10-28 09:31:13 +02:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
#ifndef EPSILON
|
2022-11-11 14:27:43 +01:00
|
|
|
#define EPSILON 1E-6f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SPLT_EPS
|
|
|
|
#define SPLT_EPS 4 * EPSILON
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LGT_EPS
|
|
|
|
#define LGT_EPS 5E-5f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef REFR_EPS
|
|
|
|
#define REFR_EPS 1E-4f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NORM_EPS
|
|
|
|
#define NORM_EPS 1E-12f
|
2022-10-28 09:31:13 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INFINITY
|
|
|
|
#define INFINITY HUGE_VAL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PI
|
|
|
|
#define PI 3.1415926535897932384f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|