diff options
Diffstat (limited to 'lib/maths.cpp')
-rw-r--r-- | lib/maths.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/maths.cpp b/lib/maths.cpp index 4ae0693..26eae47 100644 --- a/lib/maths.cpp +++ b/lib/maths.cpp @@ -173,3 +173,13 @@ find_arcs_radius(glm::vec2 start, glm::vec2 ad, glm::vec2 end, glm::vec2 bd) * (sq(m) - 2 * m * o + sq(o) + sq(n) - 2 * n * p + sq(p))))) / (2 * (sq(X) - 2 * X * Z + sq(Z) + sq(Y) - 2 * Y * W + sq(W) - 4)); } + +float operator"" _mph(const long double v) +{ + return mph_to_ms(v); +} + +float operator"" _kph(const long double v) +{ + return kph_to_ms(v); +} |