Files
MapLibreParticleLab/include/llmr/util/math.hpp
2014-01-09 11:04:56 +01:00

17 lines
247 B
C++

#ifndef LLMR_UTIL_MATH
#define LLMR_UTIL_MATH
#include <cmath>
namespace llmr {
namespace util {
inline double angle_between(double ax, double ay, double bx, double by) {
return atan2((ax * by - ay * bx), ax * bx + ay * by);
}
}
}
#endif