|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Absolute orientation in 2-dimensional space. More...
#include <GREM/physics/quantities.hpp>
Public Types | |
| using | Unit = Absolute<Radians> |
| using | DimensionType = typename Unit::DimensionType |
| using | MagnitudeType = typename Unit::MagnitudeType |
Public Member Functions | |
| GREM_ALWAYS_INLINE constexpr | Orientation () noexcept=default |
| GREM_ALWAYS_INLINE constexpr | Orientation (float angle) noexcept |
| GREM_ALWAYS_INLINE constexpr | Orientation (double angle) noexcept |
| template<typename OtherUnitT> requires (OtherUnitT::DIMENSION == DIMENSION) | |
| GREM_ALWAYS_INLINE constexpr | Orientation (Quantity< 1, OtherUnitT > angle) noexcept |
| GREM_ALWAYS_INLINE constexpr | operator float () const |
| GREM_ALWAYS_INLINE constexpr | operator double () const |
| template<typename OtherUnitT> requires (OtherUnitT::DIMENSION == DIMENSION) | |
| GREM_ALWAYS_INLINE constexpr | operator Quantity< 1, OtherUnitT > () const |
| template<unit OtherUnitT> requires (OtherUnitT::DIMENSION == DIMENSION) | |
| GREM_ALWAYS_INLINE constexpr Quantity< 1, Unitless > | in (OtherUnitT) const |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const Orientation &) const noexcept=default |
| template<typename UnitT> | |
| GREM_ALWAYS_INLINE Quantity< 2, UnitT > GREM_VECTORCALL | operator() (Quantity< 2, UnitT > b) const |
| GREM_ALWAYS_INLINE Direction2D GREM_VECTORCALL | operator() (Direction2D b) const |
| template<typename UnitT> | |
| GREM_ALWAYS_INLINE Quantity< 1, UnitT > GREM_VECTORCALL | operator() (Quantity< 1, UnitT > b) const |
| GREM_ALWAYS_INLINE constexpr size_t | size () const noexcept |
Static Public Attributes | |
| static constexpr size_t | RANK = 1 |
| static constexpr Unit | UNIT {} |
| static constexpr DimensionType | DIMENSION {} |
| static constexpr MagnitudeType | MAGNITUDE {} |
Absolute orientation in 2-dimensional space.
Unit: Radians.
| using grem::physics::Orientation< 2 >::Unit = Absolute<Radians> |
| using grem::physics::Orientation< 2 >::DimensionType = typename Unit::DimensionType |
| using grem::physics::Orientation< 2 >::MagnitudeType = typename Unit::MagnitudeType |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
nodiscardconstexprdefaultnoexcept |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscardconstexprnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |