|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
#include <GREM/physics/quantities.hpp>
Public Types | |
| using | Component = Quantity<N, UnitT> |
| using | Unit = UnitT |
| using | DimensionType = typename Unit::DimensionType |
| using | MagnitudeType = typename Unit::MagnitudeType |
Public Member Functions | |
| constexpr | TensorQuantity () noexcept=default |
| constexpr | TensorQuantity (const mat< N, N, float > &value) noexcept |
| constexpr | TensorQuantity (const mat< N, N, double > &value) noexcept |
| constexpr | TensorQuantity (Quantity< 1, UnitT > value) noexcept |
| constexpr | TensorQuantity (Component x, Component y) noexcept |
| constexpr | TensorQuantity (Component x, Component y, Component z) noexcept |
| GREM_ALWAYS_INLINE constexpr | operator mat< N, N, float > () const |
| GREM_ALWAYS_INLINE constexpr | operator mat< N, N, double > () const |
| GREM_ALWAYS_INLINE Quantity< N, Relative< UnitT > > | getScale () const noexcept |
| GREM_ALWAYS_INLINE Quantity< N, Square< Relative< UnitT > > > | getScale2 () const noexcept |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const TensorQuantity &other) const noexcept |
| template<typename OtherUnitT> requires (UnitT{} == OtherUnitT{}) | |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const TensorQuantity< N, OtherUnitT > &other) const noexcept |
| GREM_ALWAYS_INLINE constexpr bool | operator== (Zero) const noexcept |
| template<size_t Index> | |
| GREM_ALWAYS_INLINE Component | operator[] (ComponentSwizzle< Index >) noexcept |
| template<size_t Index> | |
| GREM_ALWAYS_INLINE Component | operator[] (ComponentSwizzle< Index >) const noexcept |
| template<size_t Index> | |
| GREM_ALWAYS_INLINE Component | operator[] (meta::Constant< Index >) noexcept |
| template<size_t Index> | |
| GREM_ALWAYS_INLINE Component | operator[] (meta::Constant< Index >) const noexcept |
| GREM_ALWAYS_INLINE constexpr size_t | size () const noexcept |
Static Public Member Functions | |
| template<typename OtherUnitT> | |
| static GREM_ALWAYS_INLINE constexpr TensorQuantity | reinterpret (const TensorQuantity< N, OtherUnitT > &other) |
| static GREM_ALWAYS_INLINE constexpr TensorQuantity | reinterpret (const mat< N, N, float > &value) |
| static GREM_ALWAYS_INLINE constexpr TensorQuantity | reinterpret (const mat< N, N, double > &value) |
Static Public Attributes | |
| static constexpr size_t | RANK = N |
| static constexpr Unit | UNIT {} |
| static constexpr DimensionType | DIMENSION {} |
| static constexpr MagnitudeType | MAGNITUDE {} |
| using grem::physics::TensorQuantity< N, UnitT >::Component = Quantity<N, UnitT> |
| using grem::physics::TensorQuantity< N, UnitT >::Unit = UnitT |
| using grem::physics::TensorQuantity< N, UnitT >::DimensionType = typename Unit::DimensionType |
| using grem::physics::TensorQuantity< N, UnitT >::MagnitudeType = typename Unit::MagnitudeType |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticnodiscardconstexpr |
|
inlinestaticnodiscardconstexpr |
|
inlinestaticnodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |