Math.h 222 B

1234567891011121314151617
  1. #ifndef MATH_H
  2. #define MATH_H
  3. #include <cmath>
  4. #ifndef M_PI
  5. #define M_PI 3.14159265358979323846
  6. #endif
  7. #ifndef _GNU_SOURCE
  8. void sincosf(float a, float* s, float* c) {
  9. *s = sinf(a);
  10. *c = cosf(a);
  11. }
  12. #endif
  13. #endif