20 #ifndef ANTKEEPER_PHYSICS_FREQUENCY_HPP
21 #define ANTKEEPER_PHYSICS_FREQUENCY_HPP
37 [[nodiscard]]
inline constexpr T
hz_to_rads(T f) noexcept
39 return f * math::two_pi<T>;
52 [[nodiscard]]
inline constexpr T
rads_to_hz(T w) noexcept
54 return w / math::two_pi<T>;
67 [[nodiscard]]
inline constexpr T
s_to_rads(T t) noexcept
69 return math::two_pi<T> / t;
82 [[nodiscard]]
inline constexpr T
rads_to_s(T w) noexcept
84 return math::two_pi<T> / w;
constexpr T rads_to_hz(T w) noexcept
Converts angular frequency to frequency.
constexpr T hz_to_rads(T f) noexcept
Converts frequency to angular frequency.
constexpr T rads_to_s(T w) noexcept
Converts angular frequency to oscillation period.
constexpr T s_to_rads(T t) noexcept
Converts oscillation period to angular frequency.