GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::mat< C, R, T > Struct Template Reference

#include <GREM/core/math.hpp>

Public Types

using Component = vec<R, T>

Public Member Functions

GREM_ALWAYS_INLINE constexpr mat () noexcept=default
template<typename U>
GREM_ALWAYS_INLINE constexpr mat (const mat< C, R, U > &m) noexcept
GREM_ALWAYS_INLINE constexpr mat (T value) noexcept
GREM_ALWAYS_INLINE constexpr mat (T ix, T iy, T jx, T jy) noexcept
GREM_ALWAYS_INLINE constexpr mat (T ix, T iy, T iz, T jx, T jy, T jz, T kx, T ky, T kz) noexcept
GREM_ALWAYS_INLINE constexpr mat (T ix, T iy, T iz, T iw, T jx, T jy, T jz, T jw, T kx, T ky, T kz, T kw, T lx, T ly, T lz, T lw) noexcept
GREM_ALWAYS_INLINE constexpr mat (vec< 1, T > i) noexcept
GREM_ALWAYS_INLINE constexpr mat (vec< 2, T > i, vec< 2, T > j) noexcept
GREM_ALWAYS_INLINE constexpr mat (vec< 3, T > i, vec< 3, T > j, vec< 3, T > k) noexcept
GREM_ALWAYS_INLINE constexpr mat (vec< 4, T > i, vec< 4, T > j, vec< 4, T > k, vec< 4, T > l) noexcept
template<size_t N>
requires (C == R && C > N)
GREM_ALWAYS_INLINE constexpr mat (const mat< N, N, T > &m) noexcept
GREM_ALWAYS_INLINE constexpr operator mat< 1, 1, T > () const noexcept
GREM_ALWAYS_INLINE constexpr operator mat< 2, 2, T > () const noexcept
GREM_ALWAYS_INLINE constexpr operator mat< 3, 3, T > () const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (const mat &) const noexcept=default
GREM_ALWAYS_INLINE constexpr Component & operator[] (size_t i)
GREM_ALWAYS_INLINE constexpr const Component & operator[] (size_t i) const
GREM_ALWAYS_INLINE constexpr size_t size () const noexcept

Static Public Attributes

static constexpr size_t RANK = C

Member Typedef Documentation

◆ Component

template<size_t C, size_t R, typename T>
using grem::mat< C, R, T >::Component = vec<R, T>

Constructor & Destructor Documentation

◆ mat() [1/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( )
constexprdefaultnoexcept

◆ mat() [2/11]

template<size_t C, size_t R, typename T>
template<typename U>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( const mat< C, R, U > & m)
inlineexplicitconstexprnoexcept

◆ mat() [3/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( T value)
inlineexplicitconstexprnoexcept

◆ mat() [4/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( T ix,
T iy,
T jx,
T jy )
inlineconstexprnoexcept

◆ mat() [5/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( T ix,
T iy,
T iz,
T jx,
T jy,
T jz,
T kx,
T ky,
T kz )
inlineconstexprnoexcept

◆ mat() [6/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( T ix,
T iy,
T iz,
T iw,
T jx,
T jy,
T jz,
T jw,
T kx,
T ky,
T kz,
T kw,
T lx,
T ly,
T lz,
T lw )
inlineconstexprnoexcept

◆ mat() [7/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( vec< 1, T > i)
inlineexplicitconstexprnoexcept

◆ mat() [8/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( vec< 2, T > i,
vec< 2, T > j )
inlineconstexprnoexcept

◆ mat() [9/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( vec< 3, T > i,
vec< 3, T > j,
vec< 3, T > k )
inlineconstexprnoexcept

◆ mat() [10/11]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( vec< 4, T > i,
vec< 4, T > j,
vec< 4, T > k,
vec< 4, T > l )
inlineconstexprnoexcept

◆ mat() [11/11]

template<size_t C, size_t R, typename T>
template<size_t N>
requires (C == R && C > N)
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::mat ( const mat< N, N, T > & m)
inlineconstexprnoexcept

Member Function Documentation

◆ operator mat< 1, 1, T >()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::operator mat< 1, 1, T > ( ) const
inlineexplicitconstexprnoexcept

◆ operator mat< 2, 2, T >()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::operator mat< 2, 2, T > ( ) const
inlineexplicitconstexprnoexcept

◆ operator mat< 3, 3, T >()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr grem::mat< C, R, T >::operator mat< 3, 3, T > ( ) const
inlineexplicitconstexprnoexcept

◆ operator==()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr bool grem::mat< C, R, T >::operator== ( const mat< C, R, T > & ) const
nodiscardconstexprdefaultnoexcept

◆ operator[]() [1/2]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr Component & grem::mat< C, R, T >::operator[] ( size_t i)
inlinenodiscardconstexpr

◆ operator[]() [2/2]

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr const Component & grem::mat< C, R, T >::operator[] ( size_t i) const
inlinenodiscardconstexpr

◆ size()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr size_t grem::mat< C, R, T >::size ( ) const
inlinenodiscardconstexprnoexcept

Member Data Documentation

◆ RANK

template<size_t C, size_t R, typename T>
size_t grem::mat< C, R, T >::RANK = C
staticconstexpr

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