12 #ifndef __stir_common_H__ 13 #define __stir_common_H__ 68 #include "stir/config.h" 75 #if __cplusplus >= 202002L 80 #define START_NAMESPACE_STIR \ 83 #define END_NAMESPACE_STIR } 84 #define USING_NAMESPACE_STIR using namespace stir; 88 #if !defined(__OS_WIN__) && !defined(__OS_MAC__) && !defined(__OS_VAX__) && !defined(__OS_UNIX__) 94 # if macintosh && !defined(__dest_os) 95 # define __dest_os __mac_os 97 # if __dest_os == __mac_os 103 # elif defined(_WIN32) || defined(WIN32) || defined(_WINDOWS) || defined(_DOS) 117 # elif defined(__sun) 120 # elif defined(__linux__) 121 # define __OS_LINUX__ 122 # elif defined(__osf__) 126 # endif // __OS_UNIX_ case 128 #endif // !defined(__OS_xxx_) 134 # if __cplusplus >= 202002L 137 # define _PI std::numbers::pi 141 # define _PI 3.1415926535897932384626433832795028841971693993751058209749445923078164062 152 template <
class NUMBER>
constexpr double speed_of_light_in_mm_per_ps
Define the speed of light in mm / ps.
Definition: common.h:146
constexpr double speed_of_light_in_mm_per_ps_div2
This ratio is used often.
Definition: common.h:148
NUMBER square(const NUMBER &x)
returns the square of a number, templated.
Definition: common.h:154