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

#include <GREM/core/math.hpp>

Public Types

using Component = T

Public Member Functions

GREM_ALWAYS_INLINE constexpr vec () noexcept=default
template<typename U>
GREM_ALWAYS_INLINE constexpr vec (vec< 1, U > v) noexcept
GREM_ALWAYS_INLINE constexpr vec (T value) noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (const vec &) 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

Public Attributes

T x {}

Static Public Attributes

static constexpr size_t RANK = 1

Member Typedef Documentation

◆ Component

template<typename T>
using grem::vec< 1, T >::Component = T

Constructor & Destructor Documentation

◆ vec() [1/3]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 1, T >::vec ( )
constexprdefaultnoexcept

◆ vec() [2/3]

template<typename T>
template<typename U>
GREM_ALWAYS_INLINE constexpr grem::vec< 1, T >::vec ( vec< 1, U > v)
inlineexplicitconstexprnoexcept

◆ vec() [3/3]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 1, T >::vec ( T value)
inlineconstexprnoexcept

Member Function Documentation

◆ operator==()

template<typename T>
GREM_ALWAYS_INLINE constexpr bool grem::vec< 1, T >::operator== ( const vec< 1, T > & ) const
nodiscardconstexprdefaultnoexcept

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ size()

template<typename T>
GREM_ALWAYS_INLINE constexpr size_t grem::vec< 1, T >::size ( ) const
inlinenodiscardconstexprnoexcept

Member Data Documentation

◆ RANK

template<typename T>
size_t grem::vec< 1, T >::RANK = 1
staticconstexpr

◆ x

template<typename T>
T grem::vec< 1, T >::x {}

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