tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
atan2.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_ATAN2_HPP
4#define TETL_CMATH_ATAN2_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
7
8namespace etl {
9
12
15[[nodiscard]] constexpr auto atan2(float x, float y) noexcept -> float { return etl::detail::gcem::atan2(x, y); }
16
17[[nodiscard]] constexpr auto atan2f(float x, float y) noexcept -> float { return etl::detail::gcem::atan2(x, y); }
18
19[[nodiscard]] constexpr auto atan2(double x, double y) noexcept -> double { return etl::detail::gcem::atan2(x, y); }
20
21[[nodiscard]] constexpr auto atan2(long double x, long double y) noexcept -> long double
22{
23 return etl::detail::gcem::atan2(x, y);
24}
25
26[[nodiscard]] constexpr auto atan2l(long double x, long double y) noexcept -> long double
27{
28 return etl::detail::gcem::atan2(x, y);
29}
30
32
33} // namespace etl
34
35#endif // TETL_CMATH_ATAN2_HPP
constexpr auto atan2f(float x, float y) noexcept -> float
Computes the arc tangent of y/x using the signs of arguments to determine the correct quadrant.
Definition atan2.hpp:17
constexpr auto atan2l(long double x, long double y) noexcept -> long double
Computes the arc tangent of y/x using the signs of arguments to determine the correct quadrant.
Definition atan2.hpp:26
constexpr auto atan2(float x, float y) noexcept -> float
Computes the arc tangent of y/x using the signs of arguments to determine the correct quadrant.
Definition atan2.hpp:15
Definition adjacent_find.hpp:8