candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
candlewick::Rad< T > Struct Template Reference

Strong type for floating-point variables representing angles (in radians). More...

#include <candlewick/core/math_types.h>

Public Member Functions

constexpr Rad ()
 
constexpr Rad (T value)
 
constexpr Rad (Deg< T > value)
 
constexpr operator T& ()
 
constexpr operator T () const
 
constexpr operator T* ()
 
template<typename U>
constexpr bool operator== (const Rad< U > &other) const
 
template<typename U>
constexpr bool operator== (const Deg< U > &other) const
 

Detailed Description

template<std::floating_point T>
struct candlewick::Rad< T >

Strong type for floating-point variables representing angles (in radians).

See also
Deg

Constructor & Destructor Documentation

◆ Rad() [1/3]

template<std::floating_point T>
candlewick::Rad< T >::Rad ( )
inlineconstexpr

◆ Rad() [2/3]

template<std::floating_point T>
candlewick::Rad< T >::Rad ( T value)
inlineconstexpr

◆ Rad() [3/3]

template<std::floating_point T>
candlewick::Rad< T >::Rad ( Deg< T > value)
inlineconstexpr

Member Function Documentation

◆ operator T()

template<std::floating_point T>
candlewick::Rad< T >::operator T ( ) const
inlineconstexpr

◆ operator T&()

template<std::floating_point T>
candlewick::Rad< T >::operator T& ( )
inlineconstexpr

◆ operator T*()

template<std::floating_point T>
candlewick::Rad< T >::operator T* ( )
inlineconstexpr

◆ operator==() [1/2]

template<std::floating_point T>
template<typename U>
bool candlewick::Rad< T >::operator== ( const Deg< U > & other) const
inlineconstexpr

◆ operator==() [2/2]

template<std::floating_point T>
template<typename U>
bool candlewick::Rad< T >::operator== ( const Rad< U > & other) const
inlineconstexpr

The documentation for this struct was generated from the following file: