definitions.hpp 348 B

123456789101112131415161718192021222324
  1. #ifndef PARTICLE_DEFINITIONS
  2. #define PARTICLE_DEFINITIONS
  3. #include <cstdint>
  4. #include <cstddef>
  5. #include <cmath>
  6. using numeric_t = double;
  7. using icoord_t = size_t;
  8. using fcoord_t = double;
  9. typedef struct
  10. {
  11. icoord_t x;
  12. icoord_t y;
  13. } ipoint_t;
  14. typedef struct
  15. {
  16. fcoord_t x;
  17. fcoord_t y;
  18. } fpoint_t;
  19. #endif // PARTICLE_DEFINITIONS