|
|
constexpr | basic_radian ()=default |
| | Constructs a radian value initialized to zero.
|
| |
template<scalar Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr | basic_radian (const Other value) noexcept |
| | Constructs a radian value from a scalar. More...
|
| |
template<floating_point Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr | basic_radian (const basic_radian< Other > &other) noexcept |
| | Constructs a radian value from another radian type. More...
|
| |
|
constexpr | ~basic_radian () noexcept=default |
| | Destructor.
|
| |
template<floating_point Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr auto | operator= (const basic_radian< Other > &other) noexcept -> basic_radian< Type > & |
| | Assigns from another radian type. More...
|
| |
template<floating_point Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr auto | operator+= (const basic_radian< Other > &rhs) noexcept -> basic_radian< Type > & |
| | Adds another radian value to this value. More...
|
| |
template<floating_point Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr auto | operator-= (const basic_radian< Other > &rhs) noexcept -> basic_radian< Type > & |
| | Subtracts another radian value from this value. More...
|
| |
template<floating_point Other>
requires (std::is_convertible_v<Other, Type>) |
| constexpr auto | operator*= (const Other rhs) noexcept -> basic_radian< Type > & |
| | Scales this radian value by a floating point factor. More...
|
| |
| constexpr auto | value () const noexcept -> value_type |
| | Returns the stored radian value. More...
|
| |
| constexpr | operator value_type () const noexcept |
| | Implicit conversion to the underlying scalar value. More...
|
| |
| constexpr auto | data () noexcept -> value_type * |
| | Returns a pointer to the underlying stored value. More...
|
| |
template<floating_point Type>
class sbx::math::basic_radian< Type >
Strongly-typed radian value wrapper.
This type represents an angle measured in radians. It is a thin wrapper around a floating point storage type, enabling explicit unit usage and overload selection.
- Template Parameters
-
| Type | Floating-point storage type. |