Math.cpp 253 B

12345678910111213141516
  1. #include "math/Math.h"
  2. #include <math.h>
  3. void Core::Math::sinCos(float a, float& s, float& c) {
  4. #ifdef _GNU_SOURCE
  5. sincosf(a, &s, &c);
  6. #else
  7. s = sinf(a);
  8. c = cosf(a);
  9. #endif
  10. }
  11. float Core::Math::squareRoot(float f) {
  12. return sqrtf(f);
  13. }