WPILibC++ 2024.3.2
hypot.hpp File Reference
#include <algorithm>
#include <cmath>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  gcem
 
namespace  gcem::internal
 

Functions

template<typename T >
constexpr T gcem::internal::hypot_compute (const T x, const T y) noexcept
 
template<typename T >
constexpr T gcem::internal::hypot_compute (const T x, const T y, const T z) noexcept
 
template<typename T >
constexpr T gcem::internal::hypot_vals_check (const T x, const T y) noexcept
 
template<typename T >
constexpr T gcem::internal::hypot_vals_check (const T x, const T y, const T z) noexcept
 
template<typename T1 , typename T2 , typename TC = common_return_t<T1,T2>>
constexpr TC gcem::internal::hypot_type_check (const T1 x, const T2 y) noexcept
 
template<typename T1 , typename T2 , typename T3 , typename TC = common_return_t<T1,T2,T3>>
constexpr TC gcem::internal::hypot_type_check (const T1 x, const T2 y, const T3 z) noexcept
 
template<typename T1 , typename T2 >
constexpr common_return_t< T1, T2 > gcem::hypot (const T1 x, const T2 y) noexcept
 Compile-time Pythagorean addition function. More...
 
template<typename T1 , typename T2 , typename T3 >
constexpr common_return_t< T1, T2, T3 > gcem::hypot (const T1 x, const T2 y, const T3 z) noexcept
 Compile-time Pythagorean addition function. More...