MATH: Added hypotenuse() call

This commit is contained in:
Eugene Sandulenko 2020-06-06 14:53:08 +02:00
parent 07fbcc26f4
commit 83c8035fbc

View File

@ -163,6 +163,11 @@ inline T deg2rad(T deg) {
return deg2rad<T,T>(deg);
}
template<class T>
inline T hypotenuse(T xv, T yv) {
return (T)sqrt((double)(xv * xv + yv * yv));
}
} // End of namespace Common
#endif // COMMON_MATH_H