header_utils
Loading...
Searching...
No Matches
Angles

Typedefs

template<std::floating_point T>
using ghassanpl::geometry::basic_radians_t
template<std::floating_point T>
using ghassanpl::geometry::basic_degrees_t
template<std::floating_point T>
using ghassanpl::geometry::basic_heading_t
using ghassanpl::geometry::degrees
using ghassanpl::geometry::radians
using ghassanpl::geometry::heading

Functions

 ghassanpl::geometry::ghassanpl_named_float_literal (degrees, _deg)
 ghassanpl::geometry::ghassanpl_named_float_literal (degrees, _rad)
 ghassanpl::geometry::ghassanpl_named_float_literal (degrees, _head)
template<std::floating_point T>
constexpr basic_degrees_t< T > ghassanpl::geometry::to_degrees (basic_radians_t< T > r)
template<std::floating_point T>
constexpr basic_radians_t< T > ghassanpl::geometry::to_radians (basic_degrees_t< T > r)
template<typename TARGET, std::floating_point T>
constexpr TARGET ghassanpl::geometry::named_cast (basic_radians_t< T > const &radians)
template<typename TARGET, std::floating_point T>
constexpr TARGET ghassanpl::geometry::named_cast (basic_degrees_t< T > const &degrees)
template<std::floating_point T>
constexpr basic_degrees_t< T > ghassanpl::geometry::angles::ensure_positive (basic_degrees_t< T > degrees) noexcept

Detailed Description

Typedef Documentation

◆ basic_degrees_t

template<std::floating_point T>
using ghassanpl::geometry::basic_degrees_t

Definition at line 184 of file geometry_common.h.

◆ basic_heading_t

template<std::floating_point T>
using ghassanpl::geometry::basic_heading_t

Definition at line 186 of file geometry_common.h.

◆ basic_radians_t

template<std::floating_point T>
using ghassanpl::geometry::basic_radians_t

Definition at line 183 of file geometry_common.h.

◆ degrees

using ghassanpl::geometry::degrees

Definition at line 188 of file geometry_common.h.

◆ heading

using ghassanpl::geometry::heading

Definition at line 190 of file geometry_common.h.

◆ radians

using ghassanpl::geometry::radians

Definition at line 189 of file geometry_common.h.

Function Documentation

◆ ensure_positive()

template<std::floating_point T>
basic_degrees_t< T > ghassanpl::geometry::angles::ensure_positive ( basic_degrees_t< T > degrees)
constexprnoexcept

Definition at line 217 of file geometry_common.h.

◆ named_cast() [1/2]

template<typename TARGET, std::floating_point T>
TARGET ghassanpl::geometry::named_cast ( basic_degrees_t< T > const & degrees)
constexpr

Definition at line 206 of file geometry_common.h.

◆ named_cast() [2/2]

template<typename TARGET, std::floating_point T>
TARGET ghassanpl::geometry::named_cast ( basic_radians_t< T > const & radians)
constexpr

Definition at line 199 of file geometry_common.h.

◆ to_degrees()

template<std::floating_point T>
basic_degrees_t< T > ghassanpl::geometry::to_degrees ( basic_radians_t< T > r)
constexpr

Definition at line 193 of file geometry_common.h.

◆ to_radians()

template<std::floating_point T>
basic_radians_t< T > ghassanpl::geometry::to_radians ( basic_degrees_t< T > r)
constexpr

Definition at line 195 of file geometry_common.h.