|
|
| Rad ()=default |
| | Default contructor.
|
| |
| constexpr | Rad (T _rad) noexcept |
| | Value constructor without conversion.
|
| |
| template<typename TIn > |
| constexpr | Rad (Rad< TIn > _other) noexcept |
| | Value constructor without conversion.
|
| |
| template<typename TIn > |
| constexpr | Rad (Deg< TIn > _deg) noexcept |
| | Value constructor from radian.
|
| |
| constexpr T | Handle () const noexcept |
| | Access the handled value.
|
| |
| constexpr bool | Equals (Rad _other, T _epsilon=std::numeric_limits< T >::epsilon()) const noexcept |
| | Compare 2 Rad.
|
| |
|
void | Clamp () noexcept |
| | clamp this angle between [-Pi, Pi].
|
| |
| constexpr Rad | operator- () const noexcept |
| | Getter of the opposite signed radian.
|
| |
| constexpr Rad | operator+ (Rad _rhs) const noexcept |
| | Add Radian to handle.
|
| |
| constexpr Rad | operator- (Rad _rhs) const noexcept |
| | Substract Radian to handle.
|
| |
| constexpr Rad | operator* (T _scale) const noexcept |
| | Scale angle.
|
| |
| Rad | operator/ (T _scale) const |
| | Unscale angle.
|
| |
| Rad & | operator+= (Rad _rhs) noexcept |
| | Add Radian to handle.
|
| |
| Rad & | operator-= (Rad _rhs) noexcept |
| | Substract Radian to handle.
|
| |
| Rad & | operator*= (T _scale) noexcept |
| | Scale angle.
|
| |
| Rad & | operator/= (T _scale) |
| | Unscale angle.
|
| |
| constexpr bool | operator== (Rad _rhs) const noexcept |
| | Compare 2 radian equality.
|
| |
| constexpr bool | operator!= (Rad _rhs) const noexcept |
| | Compare 2 radian inequality.
|
| |
| constexpr | operator T () const noexcept |
| | Access the handled value.
|
| |
template<typename T>
class SA::Rad< T >
Maths Radian type.
Handle Degree / Radian conversion.