|
| GREM_ALWAYS_INLINE constexpr | Quantity ()=default |
| GREM_ALWAYS_INLINE constexpr | Quantity (const Quantity &)=default |
| GREM_ALWAYS_INLINE constexpr | Quantity (Quantity &&) noexcept=default |
| GREM_ALWAYS_INLINE constexpr Quantity & | operator= (const Quantity &)=default |
| GREM_ALWAYS_INLINE constexpr Quantity & | operator= (Quantity &&) noexcept=default |
| GREM_ALWAYS_INLINE constexpr | ~Quantity ()=default |
| GREM_ALWAYS_INLINE constexpr | Quantity (Zero) |
| GREM_ALWAYS_INLINE constexpr | Quantity (Component value) |
| GREM_ALWAYS_INLINE constexpr | Quantity (Component x, Component y) |
| GREM_ALWAYS_INLINE constexpr | Quantity (Zero, Component y) |
| GREM_ALWAYS_INLINE constexpr | Quantity (Component x, Zero) |
| GREM_ALWAYS_INLINE constexpr | Quantity (Zero, Zero) |
| GREM_ALWAYS_INLINE constexpr | Quantity (vec< 2, float > v) |
| GREM_ALWAYS_INLINE constexpr | Quantity (vec< 2, double > v) |
template<unit OtherUnitT>
requires (!same_as<OtherUnitT, UnitT> && OtherUnitT::DIMENSION == DIMENSION && (OtherUnitT::MagnitudeType::IS_ABSOLUTE == MagnitudeType::IS_ABSOLUTE || !OtherUnitT::MagnitudeType::IS_ABSOLUTE)) |
| GREM_ALWAYS_INLINE constexpr | Quantity (const Quantity< 2, OtherUnitT > &q) |
| GREM_ALWAYS_INLINE constexpr Quantity & | operator= (Zero) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const Quantity &other) const noexcept |
template<typename OtherUnitT>
requires (UnitT{} == OtherUnitT{}) |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const Quantity< 2, OtherUnitT > &other) const noexcept |
| GREM_ALWAYS_INLINE constexpr bool | operator== (Zero) const noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE void | set (ComponentSwizzle< Index > Swizzle, Component value) noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE void | set (ComponentSwizzle< Index > Swizzle, Zero) noexcept |
| GREM_ALWAYS_INLINE void | setX (Component x) noexcept |
| GREM_ALWAYS_INLINE void | setX (Zero) noexcept |
| GREM_ALWAYS_INLINE void | setY (Component y) noexcept |
| GREM_ALWAYS_INLINE void | setY (Zero) noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE Component | get (ComponentSwizzle< Index > Swizzle) const noexcept |
| GREM_ALWAYS_INLINE Component | get (Zero) const noexcept |
| template<size_t IndexX, size_t IndexY> |
| GREM_ALWAYS_INLINE Quantity< 2, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, ComponentSwizzle< IndexY > SwizzleY) const noexcept |
| template<size_t IndexX> |
| GREM_ALWAYS_INLINE Quantity< 2, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, Zero) const noexcept |
| template<size_t IndexY> |
| GREM_ALWAYS_INLINE Quantity< 2, UnitT > | get (Zero, ComponentSwizzle< IndexY > SwizzleY) const noexcept |
| GREM_ALWAYS_INLINE Quantity< 2, UnitT > | get (Zero, Zero) const noexcept |
| template<size_t IndexX, size_t IndexY, size_t IndexZ> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, ComponentSwizzle< IndexY > SwizzleY, ComponentSwizzle< IndexZ > SwizzleZ) const noexcept |
| template<size_t IndexX, size_t IndexY> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, ComponentSwizzle< IndexY > SwizzleY, Zero) const noexcept |
| template<size_t IndexX, size_t IndexZ> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, Zero, ComponentSwizzle< IndexZ > SwizzleZ) const noexcept |
| template<size_t IndexY, size_t IndexZ> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (Zero, ComponentSwizzle< IndexY > SwizzleY, ComponentSwizzle< IndexZ > SwizzleZ) const noexcept |
| template<size_t IndexX> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (ComponentSwizzle< IndexX > SwizzleX, Zero, Zero) const noexcept |
| template<size_t IndexY> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (Zero, ComponentSwizzle< IndexY > SwizzleY, Zero) const noexcept |
| template<size_t IndexZ> |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (Zero, Zero, ComponentSwizzle< IndexZ > SwizzleZ) const noexcept |
| GREM_ALWAYS_INLINE Quantity< 3, UnitT > | get (Zero, Zero, Zero) const noexcept |
| GREM_ALWAYS_INLINE Component | getX () const noexcept |
| GREM_ALWAYS_INLINE Component | getY () const noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE ComponentProxy< 2, UnitT, Index > | operator[] (ComponentSwizzle< Index >) noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE ConstComponentProxy< 2, UnitT, Index > | operator[] (ComponentSwizzle< Index >) const noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE ComponentProxy< 2, UnitT, Index > | operator[] (meta::Constant< Index >) noexcept |
| template<size_t Index> |
| GREM_ALWAYS_INLINE ConstComponentProxy< 2, UnitT, Index > | operator[] (meta::Constant< Index >) const noexcept |
| GREM_ALWAYS_INLINE constexpr | operator vec< 2, float > () const |
| GREM_ALWAYS_INLINE constexpr | operator vec< 2, double > () const |
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION) |
| GREM_ALWAYS_INLINE Quantity< 2, Unitless > | in (OtherUnitT) const |
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION && (OtherUnitT::MagnitudeType::IS_ABSOLUTE == MagnitudeType::IS_ABSOLUTE || OtherUnitT::MagnitudeType::IS_ABSOLUTE)) |
| GREM_ALWAYS_INLINE constexpr Quantity< 2, OtherUnitT > | as (OtherUnitT) const |
| GREM_ALWAYS_INLINE constexpr size_t | size () const noexcept |
| GREM_ALWAYS_INLINE size_t | getMinIndex () const |
| GREM_ALWAYS_INLINE size_t | getMaxIndex () const |