GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::Quantity< 3, UnitT > Struct Template Reference

#include <GREM/physics/quantities.hpp>

Public Types

using Component = Quantity<1, UnitT>
using Unit = UnitT
using DimensionType = typename Unit::DimensionType
using MagnitudeType = typename Unit::MagnitudeType

Public Member Functions

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, Component z)
GREM_ALWAYS_INLINE constexpr Quantity (Zero, Component y, Component z)
GREM_ALWAYS_INLINE constexpr Quantity (Component x, Zero, Component z)
GREM_ALWAYS_INLINE constexpr Quantity (Zero, Zero, Component z)
GREM_ALWAYS_INLINE constexpr Quantity (Component x, Component y, Zero)
GREM_ALWAYS_INLINE constexpr Quantity (Zero, Component y, Zero)
GREM_ALWAYS_INLINE constexpr Quantity (Component x, Zero, Zero)
GREM_ALWAYS_INLINE constexpr Quantity (Zero, Zero, Zero)
GREM_ALWAYS_INLINE constexpr Quantity (vec< 3, float > v)
GREM_ALWAYS_INLINE constexpr Quantity (vec< 3, 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< 3, OtherUnitT > &q)
GREM_ALWAYS_INLINE constexpr Quantity (Quantity< 2, UnitT > xy, Component z)
GREM_ALWAYS_INLINE constexpr Quantity (Quantity< 2, UnitT > xy, Zero)
GREM_ALWAYS_INLINE constexpr Quantity (Component x, Quantity< 2, UnitT > yz)
GREM_ALWAYS_INLINE constexpr Quantity (Zero, Quantity< 2, UnitT > yz)
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< 3, 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
GREM_ALWAYS_INLINE void setZ (Component z) noexcept
GREM_ALWAYS_INLINE void setZ (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
GREM_ALWAYS_INLINE Component getZ () const noexcept
template<size_t Index>
GREM_ALWAYS_INLINE ComponentProxy< 3, UnitT, Index > operator[] (ComponentSwizzle< Index >) noexcept
template<size_t Index>
GREM_ALWAYS_INLINE ConstComponentProxy< 3, UnitT, Index > operator[] (ComponentSwizzle< Index >) const noexcept
template<size_t Index>
GREM_ALWAYS_INLINE ComponentProxy< 3, UnitT, Index > operator[] (meta::Constant< Index >) noexcept
template<size_t Index>
GREM_ALWAYS_INLINE ConstComponentProxy< 3, UnitT, Index > operator[] (meta::Constant< Index >) const noexcept
GREM_ALWAYS_INLINE constexpr operator vec< 3, float > () const
GREM_ALWAYS_INLINE constexpr operator vec< 3, double > () const
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION)
GREM_ALWAYS_INLINE Quantity< 3, 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< 3, 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

Static Public Member Functions

template<typename OtherUnitT>
static GREM_ALWAYS_INLINE constexpr Quantity reinterpret (Quantity< 3, OtherUnitT > other)
static GREM_ALWAYS_INLINE constexpr Quantity reinterpret (vec< 3, float > value)
static GREM_ALWAYS_INLINE constexpr Quantity reinterpret (vec< 3, double > value)

Static Public Attributes

static constexpr size_t RANK = 3
static constexpr Unit UNIT {}
static constexpr DimensionType DIMENSION {}
static constexpr MagnitudeType MAGNITUDE {}
static const Quantity ZERO
static const Quantity MIN
static const Quantity MAX
static const Quantity SMALLEST_NORMAL
static const Quantity SMALLEST_SUBNORMAL
static const Quantity MACHINE_EPSILON
static const Quantity INF
static const Quantity QUIET_NAN

Friends

template<size_t OtherN, typename OtherUnitT>
struct Quantity
template<size_t OtherN, typename OtherUnitT, size_t Index>
class ConstComponentProxy
template<size_t OtherN, typename OtherUnitT, size_t Index>
class ComponentProxy

Member Typedef Documentation

◆ Component

template<typename UnitT>
using grem::physics::Quantity< 3, UnitT >::Component = Quantity<1, UnitT>

◆ Unit

template<typename UnitT>
using grem::physics::Quantity< 3, UnitT >::Unit = UnitT

◆ DimensionType

template<typename UnitT>
using grem::physics::Quantity< 3, UnitT >::DimensionType = typename Unit::DimensionType

◆ MagnitudeType

template<typename UnitT>
using grem::physics::Quantity< 3, UnitT >::MagnitudeType = typename Unit::MagnitudeType

Constructor & Destructor Documentation

◆ Quantity() [1/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( )
constexprdefault

◆ Quantity() [2/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( const Quantity< 3, UnitT > & )
constexprdefault

◆ Quantity() [3/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Quantity< 3, UnitT > && )
constexprdefaultnoexcept

◆ ~Quantity()

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::~Quantity ( )
constexprdefault

◆ Quantity() [4/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero )
inlineconstexpr

◆ Quantity() [5/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component value)
inlineexplicitconstexpr

◆ Quantity() [6/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component x,
Component y,
Component z )
inlineconstexpr

◆ Quantity() [7/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero ,
Component y,
Component z )
inlineconstexpr

◆ Quantity() [8/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component x,
Zero ,
Component z )
inlineconstexpr

◆ Quantity() [9/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero ,
Zero ,
Component z )
inlineconstexpr

◆ Quantity() [10/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component x,
Component y,
Zero  )
inlineconstexpr

◆ Quantity() [11/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero ,
Component y,
Zero  )
inlineconstexpr

◆ Quantity() [12/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component x,
Zero ,
Zero  )
inlineconstexpr

◆ Quantity() [13/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero ,
Zero ,
Zero  )
inlineconstexpr

◆ Quantity() [14/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( vec< 3, float > v)
inlineconstexpr

◆ Quantity() [15/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( vec< 3, double > v)
inlineconstexpr

◆ Quantity() [16/20]

template<typename UnitT>
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 grem::physics::Quantity< 3, UnitT >::Quantity ( const Quantity< 3, OtherUnitT > & q)
inlineconstexpr

◆ Quantity() [17/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Quantity< 2, UnitT > xy,
Component z )
inlineconstexpr

◆ Quantity() [18/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Quantity< 2, UnitT > xy,
Zero  )
inlineconstexpr

◆ Quantity() [19/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Component x,
Quantity< 2, UnitT > yz )
inlineconstexpr

◆ Quantity() [20/20]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::Quantity ( Zero ,
Quantity< 2, UnitT > yz )
inlineconstexpr

Member Function Documentation

◆ reinterpret() [1/3]

template<typename UnitT>
template<typename OtherUnitT>
GREM_ALWAYS_INLINE constexpr Quantity grem::physics::Quantity< 3, UnitT >::reinterpret ( Quantity< 3, OtherUnitT > other)
inlinestaticnodiscardconstexpr

◆ reinterpret() [2/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity grem::physics::Quantity< 3, UnitT >::reinterpret ( vec< 3, float > value)
inlinestaticnodiscardconstexpr

◆ reinterpret() [3/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity grem::physics::Quantity< 3, UnitT >::reinterpret ( vec< 3, double > value)
inlinestaticnodiscardconstexpr

◆ operator=() [1/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity & grem::physics::Quantity< 3, UnitT >::operator= ( const Quantity< 3, UnitT > & )
constexprdefault

◆ operator=() [2/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity & grem::physics::Quantity< 3, UnitT >::operator= ( Quantity< 3, UnitT > && )
constexprdefaultnoexcept

◆ operator=() [3/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity & grem::physics::Quantity< 3, UnitT >::operator= ( Zero )
inlineconstexpr

◆ operator==() [1/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr bool grem::physics::Quantity< 3, UnitT >::operator== ( const Quantity< 3, UnitT > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [2/3]

template<typename UnitT>
template<typename OtherUnitT>
requires (UnitT{} == OtherUnitT{})
GREM_ALWAYS_INLINE constexpr bool grem::physics::Quantity< 3, UnitT >::operator== ( const Quantity< 3, OtherUnitT > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [3/3]

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr bool grem::physics::Quantity< 3, UnitT >::operator== ( Zero ) const
inlinenodiscardconstexprnoexcept

◆ set() [1/2]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::set ( ComponentSwizzle< Index > Swizzle,
Component value )
inlinenoexcept

◆ set() [2/2]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::set ( ComponentSwizzle< Index > Swizzle,
Zero  )
inlinenoexcept

◆ setX() [1/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setX ( Component x)
inlinenoexcept

◆ setX() [2/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setX ( Zero )
inlinenoexcept

◆ setY() [1/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setY ( Component y)
inlinenoexcept

◆ setY() [2/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setY ( Zero )
inlinenoexcept

◆ setZ() [1/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setZ ( Component z)
inlinenoexcept

◆ setZ() [2/2]

template<typename UnitT>
GREM_ALWAYS_INLINE void grem::physics::Quantity< 3, UnitT >::setZ ( Zero )
inlinenoexcept

◆ get() [1/14]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE Component grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< Index > Swizzle) const
inlinenodiscardnoexcept

◆ get() [2/14]

template<typename UnitT>
GREM_ALWAYS_INLINE Component grem::physics::Quantity< 3, UnitT >::get ( Zero ) const
inlinenodiscardnoexcept

◆ get() [3/14]

template<typename UnitT>
template<size_t IndexX, size_t IndexY>
GREM_ALWAYS_INLINE Quantity< 2, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
ComponentSwizzle< IndexY > SwizzleY ) const
inlinenodiscardnoexcept

◆ get() [4/14]

template<typename UnitT>
template<size_t IndexX>
GREM_ALWAYS_INLINE Quantity< 2, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
Zero  ) const
inlinenodiscardnoexcept

◆ get() [5/14]

template<typename UnitT>
template<size_t IndexY>
GREM_ALWAYS_INLINE Quantity< 2, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
ComponentSwizzle< IndexY > SwizzleY ) const
inlinenodiscardnoexcept

◆ get() [6/14]

template<typename UnitT>
GREM_ALWAYS_INLINE Quantity< 2, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
Zero  ) const
inlinenodiscardnoexcept

◆ get() [7/14]

template<typename UnitT>
template<size_t IndexX, size_t IndexY, size_t IndexZ>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
ComponentSwizzle< IndexY > SwizzleY,
ComponentSwizzle< IndexZ > SwizzleZ ) const
inlinenodiscardnoexcept

◆ get() [8/14]

template<typename UnitT>
template<size_t IndexX, size_t IndexY>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
ComponentSwizzle< IndexY > SwizzleY,
Zero  ) const
inlinenodiscardnoexcept

◆ get() [9/14]

template<typename UnitT>
template<size_t IndexX, size_t IndexZ>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
Zero ,
ComponentSwizzle< IndexZ > SwizzleZ ) const
inlinenodiscardnoexcept

◆ get() [10/14]

template<typename UnitT>
template<size_t IndexY, size_t IndexZ>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
ComponentSwizzle< IndexY > SwizzleY,
ComponentSwizzle< IndexZ > SwizzleZ ) const
inlinenodiscardnoexcept

◆ get() [11/14]

template<typename UnitT>
template<size_t IndexX>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( ComponentSwizzle< IndexX > SwizzleX,
Zero ,
Zero  ) const
inlinenodiscardnoexcept

◆ get() [12/14]

template<typename UnitT>
template<size_t IndexY>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
ComponentSwizzle< IndexY > SwizzleY,
Zero  ) const
inlinenodiscardnoexcept

◆ get() [13/14]

template<typename UnitT>
template<size_t IndexZ>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
Zero ,
ComponentSwizzle< IndexZ > SwizzleZ ) const
inlinenodiscardnoexcept

◆ get() [14/14]

template<typename UnitT>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > grem::physics::Quantity< 3, UnitT >::get ( Zero ,
Zero ,
Zero  ) const
inlinenodiscardnoexcept

◆ getX()

template<typename UnitT>
GREM_ALWAYS_INLINE Component grem::physics::Quantity< 3, UnitT >::getX ( ) const
inlinenodiscardnoexcept

◆ getY()

template<typename UnitT>
GREM_ALWAYS_INLINE Component grem::physics::Quantity< 3, UnitT >::getY ( ) const
inlinenodiscardnoexcept

◆ getZ()

template<typename UnitT>
GREM_ALWAYS_INLINE Component grem::physics::Quantity< 3, UnitT >::getZ ( ) const
inlinenodiscardnoexcept

◆ operator[]() [1/4]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE ComponentProxy< 3, UnitT, Index > grem::physics::Quantity< 3, UnitT >::operator[] ( ComponentSwizzle< Index > )
inlinenodiscardnoexcept

◆ operator[]() [2/4]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE ConstComponentProxy< 3, UnitT, Index > grem::physics::Quantity< 3, UnitT >::operator[] ( ComponentSwizzle< Index > ) const
inlinenodiscardnoexcept

◆ operator[]() [3/4]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE ComponentProxy< 3, UnitT, Index > grem::physics::Quantity< 3, UnitT >::operator[] ( meta::Constant< Index > )
inlinenodiscardnoexcept

◆ operator[]() [4/4]

template<typename UnitT>
template<size_t Index>
GREM_ALWAYS_INLINE ConstComponentProxy< 3, UnitT, Index > grem::physics::Quantity< 3, UnitT >::operator[] ( meta::Constant< Index > ) const
inlinenodiscardnoexcept

◆ operator vec< 3, float >()

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::operator vec< 3, float > ( ) const
inlineconstexpr

◆ operator vec< 3, double >()

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr grem::physics::Quantity< 3, UnitT >::operator vec< 3, double > ( ) const
inlineconstexpr

◆ in()

template<typename UnitT>
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION)
GREM_ALWAYS_INLINE Quantity< 3, Unitless > grem::physics::Quantity< 3, UnitT >::in ( OtherUnitT ) const
inlinenodiscard

◆ as()

template<typename UnitT>
template<unit OtherUnitT>
requires (OtherUnitT::DIMENSION == DIMENSION && (OtherUnitT::MagnitudeType::IS_ABSOLUTE == MagnitudeType::IS_ABSOLUTE || OtherUnitT::MagnitudeType::IS_ABSOLUTE))
GREM_ALWAYS_INLINE constexpr Quantity< 3, OtherUnitT > grem::physics::Quantity< 3, UnitT >::as ( OtherUnitT ) const
inlinenodiscardconstexpr

◆ size()

template<typename UnitT>
GREM_ALWAYS_INLINE constexpr size_t grem::physics::Quantity< 3, UnitT >::size ( ) const
inlinenodiscardconstexprnoexcept

◆ getMinIndex()

template<typename UnitT>
GREM_ALWAYS_INLINE size_t grem::physics::Quantity< 3, UnitT >::getMinIndex ( ) const
inlinenodiscard

◆ getMaxIndex()

template<typename UnitT>
GREM_ALWAYS_INLINE size_t grem::physics::Quantity< 3, UnitT >::getMaxIndex ( ) const
inlinenodiscard

◆ Quantity

template<typename UnitT>
template<size_t OtherN, typename OtherUnitT>
friend struct Quantity
friend

◆ ConstComponentProxy

template<typename UnitT>
template<size_t OtherN, typename OtherUnitT, size_t Index>
friend class ConstComponentProxy
friend

◆ ComponentProxy

template<typename UnitT>
template<size_t OtherN, typename OtherUnitT, size_t Index>
friend class ComponentProxy
friend

Member Data Documentation

◆ RANK

template<typename UnitT>
size_t grem::physics::Quantity< 3, UnitT >::RANK = 3
staticconstexpr

◆ UNIT

template<typename UnitT>
Unit grem::physics::Quantity< 3, UnitT >::UNIT {}
staticconstexpr

◆ DIMENSION

template<typename UnitT>
DimensionType grem::physics::Quantity< 3, UnitT >::DIMENSION {}
staticconstexpr

◆ MAGNITUDE

template<typename UnitT>
MagnitudeType grem::physics::Quantity< 3, UnitT >::MAGNITUDE {}
staticconstexpr

◆ ZERO

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::ZERO
static

◆ MIN

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::MIN
static

◆ MAX

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::MAX
static

◆ SMALLEST_NORMAL

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::SMALLEST_NORMAL
static

◆ SMALLEST_SUBNORMAL

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::SMALLEST_SUBNORMAL
static

◆ MACHINE_EPSILON

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::MACHINE_EPSILON
static

◆ INF

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::INF
static

◆ QUIET_NAN

template<typename UnitT>
const Quantity grem::physics::Quantity< 3, UnitT >::QUIET_NAN
static

The documentation for this struct was generated from the following file: