GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::vec< 4, 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< 4, U > v) noexcept
GREM_ALWAYS_INLINE constexpr vec (T value) noexcept
GREM_ALWAYS_INLINE constexpr vec (T x, T y, T z, T w) noexcept
GREM_ALWAYS_INLINE constexpr vec (vec< 3, T > xyz, T w) noexcept
GREM_ALWAYS_INLINE constexpr vec (T x, vec< 3, T > yzw) noexcept
GREM_ALWAYS_INLINE constexpr vec (vec< 2, T > xy, vec< 2, T > zw) noexcept
GREM_ALWAYS_INLINE constexpr vec (vec< 2, T > xy, T z, T w) noexcept
GREM_ALWAYS_INLINE constexpr vec (T x, vec< 2, T > yz, T w) noexcept
GREM_ALWAYS_INLINE constexpr vec (T x, T y, vec< 2, T > zw) noexcept
template<typename U>
GREM_ALWAYS_INLINE constexpr operator vec< 1, U > () const noexcept
template<typename U>
GREM_ALWAYS_INLINE constexpr operator vec< 2, U > () const noexcept
template<typename U>
GREM_ALWAYS_INLINE constexpr operator vec< 3, U > () const 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 {}
T y {}
T z {}
T w {}

Static Public Attributes

static constexpr size_t RANK = 4

Member Typedef Documentation

◆ Component

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

Constructor & Destructor Documentation

◆ vec() [1/10]

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

◆ vec() [2/10]

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

◆ vec() [3/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( T value)
inlineexplicitconstexprnoexcept

◆ vec() [4/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( T x,
T y,
T z,
T w )
inlineconstexprnoexcept

◆ vec() [5/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( vec< 3, T > xyz,
T w )
inlineconstexprnoexcept

◆ vec() [6/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( T x,
vec< 3, T > yzw )
inlineconstexprnoexcept

◆ vec() [7/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( vec< 2, T > xy,
vec< 2, T > zw )
inlineconstexprnoexcept

◆ vec() [8/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( vec< 2, T > xy,
T z,
T w )
inlineconstexprnoexcept

◆ vec() [9/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( T x,
vec< 2, T > yz,
T w )
inlineconstexprnoexcept

◆ vec() [10/10]

template<typename T>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::vec ( T x,
T y,
vec< 2, T > zw )
inlineconstexprnoexcept

Member Function Documentation

◆ operator vec< 1, U >()

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

◆ operator vec< 2, U >()

template<typename T>
template<typename U>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::operator vec< 2, U > ( ) const
inlineexplicitconstexprnoexcept

◆ operator vec< 3, U >()

template<typename T>
template<typename U>
GREM_ALWAYS_INLINE constexpr grem::vec< 4, T >::operator vec< 3, U > ( ) const
inlineexplicitconstexprnoexcept

◆ operator==()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ size()

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

Member Data Documentation

◆ RANK

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

◆ x

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

◆ y

template<typename T>
T grem::vec< 4, T >::y {}

◆ z

template<typename T>
T grem::vec< 4, T >::z {}

◆ w

template<typename T>
T grem::vec< 4, T >::w {}

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