GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::OrthonormalBasis< N > Struct Template Reference

Basis whose columns are all unit vectors that are orthogonal to each other. More...

#include <GREM/physics/quantities.hpp>

Inheritance diagram for grem::physics::OrthonormalBasis< N >:

Public Types

using Component = Direction<N>
Public Types inherited from grem::physics::TensorQuantity< N, Unitless >
using Component
using Unit
using DimensionType
using MagnitudeType

Public Member Functions

GREM_ALWAYS_INLINE constexpr bool operator== (const OrthonormalBasis &other) const noexcept
template<typename OtherUnitT>
requires (UNIT == OtherUnitT{})
GREM_ALWAYS_INLINE constexpr bool operator== (const TensorQuantity< N, OtherUnitT > &other) const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (Zero other) 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 OrthonormalBasis GREM_VECTORCALL operator- () const
GREM_ALWAYS_INLINE OrthonormalBasis GREM_VECTORCALL operator* (const OrthonormalBasis &other) const
GREM_ALWAYS_INLINE Direction< N > GREM_VECTORCALL operator* (Direction< N > direction) const
Public Member Functions inherited from grem::physics::TensorQuantity< N, Unitless >
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, Unitless > 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< Unitless > > getScale () const noexcept
GREM_ALWAYS_INLINE Quantity< N, Square< Relative< Unitless > > > getScale2 () const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (const TensorQuantity &other) const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (const TensorQuantity< N, OtherUnitT > &other) const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (Zero) const noexcept
GREM_ALWAYS_INLINE Component operator[] (ComponentSwizzle< Index >) noexcept
GREM_ALWAYS_INLINE Component operator[] (ComponentSwizzle< Index >) const noexcept
GREM_ALWAYS_INLINE Component operator[] (meta::Constant< Index >) noexcept
GREM_ALWAYS_INLINE Component operator[] (meta::Constant< Index >) const noexcept
GREM_ALWAYS_INLINE constexpr size_t size () const noexcept

Static Public Member Functions

static GREM_ALWAYS_INLINE constexpr OrthonormalBasis reinterpret (const auto &value)
Static Public Member Functions inherited from grem::physics::TensorQuantity< N, Unitless >
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)

Additional Inherited Members

Static Public Attributes inherited from grem::physics::TensorQuantity< N, Unitless >
static constexpr size_t RANK
static constexpr Unit UNIT
static constexpr DimensionType DIMENSION
static constexpr MagnitudeType MAGNITUDE

Detailed Description

template<size_t N>
struct grem::physics::OrthonormalBasis< N >

Basis whose columns are all unit vectors that are orthogonal to each other.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Typedef Documentation

◆ Component

template<size_t N>
using grem::physics::OrthonormalBasis< N >::Component = Direction<N>

Member Function Documentation

◆ reinterpret()

template<size_t N>
GREM_ALWAYS_INLINE constexpr OrthonormalBasis grem::physics::OrthonormalBasis< N >::reinterpret ( const auto & value)
inlinestaticnodiscardconstexpr

◆ operator==() [1/3]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool grem::physics::OrthonormalBasis< N >::operator== ( const OrthonormalBasis< N > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [2/3]

template<size_t N>
template<typename OtherUnitT>
requires (UNIT == OtherUnitT{})
GREM_ALWAYS_INLINE constexpr bool grem::physics::OrthonormalBasis< N >::operator== ( const TensorQuantity< N, OtherUnitT > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [3/3]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool grem::physics::OrthonormalBasis< N >::operator== ( Zero other) const
inlinenodiscardconstexprnoexcept

◆ operator[]() [1/4]

template<size_t N>
template<size_t Index>
GREM_ALWAYS_INLINE Component grem::physics::OrthonormalBasis< N >::operator[] ( ComponentSwizzle< Index > )
inlinenodiscardnoexcept

◆ operator[]() [2/4]

template<size_t N>
template<size_t Index>
GREM_ALWAYS_INLINE Component grem::physics::OrthonormalBasis< N >::operator[] ( ComponentSwizzle< Index > ) const
inlinenodiscardnoexcept

◆ operator[]() [3/4]

template<size_t N>
template<size_t Index>
GREM_ALWAYS_INLINE Component grem::physics::OrthonormalBasis< N >::operator[] ( meta::Constant< Index > )
inlinenodiscardnoexcept

◆ operator[]() [4/4]

template<size_t N>
template<size_t Index>
GREM_ALWAYS_INLINE Component grem::physics::OrthonormalBasis< N >::operator[] ( meta::Constant< Index > ) const
inlinenodiscardnoexcept

◆ operator-()

template<size_t N>
GREM_ALWAYS_INLINE constexpr OrthonormalBasis GREM_VECTORCALL grem::physics::OrthonormalBasis< N >::operator- ( ) const
inlinenodiscardconstexpr

◆ operator*() [1/2]

template<size_t N>
GREM_ALWAYS_INLINE OrthonormalBasis GREM_VECTORCALL grem::physics::OrthonormalBasis< N >::operator* ( const OrthonormalBasis< N > & other) const
inlinenodiscard

◆ operator*() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE Direction< N > GREM_VECTORCALL grem::physics::OrthonormalBasis< N >::operator* ( Direction< N > direction) const
inlinenodiscard

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