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// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4#ifndef TETL_CMATH_ATAN2_HPP
5#define TETL_CMATH_ATAN2_HPP
6
7#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
11/// \ingroup cmath
12/// @{
13
14/// Computes the arc tangent of y/x using the signs of arguments to determine the correct quadrant.
15/// \details https://en.cppreference.com/w/cpp/numeric/math/atan2
16[[nodiscard]] constexpr auto atan2(float x, float y) noexcept -> float
17{
18 return etl::detail::gcem::atan2(x, y);
19}
20
21[[nodiscard]] constexpr auto atan2f(float x, float y) noexcept -> float
22{
23 return etl::detail::gcem::atan2(x, y);
24}
25
26[[nodiscard]] constexpr auto atan2(double x, double y) noexcept -> double
27{
28 return etl::detail::gcem::atan2(x, y);
29}
30
31[[nodiscard]] constexpr auto atan2(long double x, long double y) noexcept -> long double
32{
33 return etl::detail::gcem::atan2(x, y);
34}
35
36[[nodiscard]] constexpr auto atan2l(long double x, long double y) noexcept -> long double
37{
38 return etl::detail::gcem::atan2(x, y);
39}
40
41/// @}
42
43} // namespace etl
44
45#endif // TETL_CMATH_ATAN2_HPP
constexpr auto atan2f(float x, float y) noexcept -> float
Definition atan2.hpp:21
constexpr auto atan2(long double x, long double y) noexcept -> long double
Definition atan2.hpp:31
constexpr auto atan2l(long double x, long double y) noexcept -> long double
Definition atan2.hpp:36
constexpr auto atan2(float x, float y) noexcept -> float
Definition atan2.hpp:16
constexpr auto atan2(double x, double y) noexcept -> double
Definition atan2.hpp:26
Definition adjacent_find.hpp:9