openMSX
Public Member Functions | Public Attributes | List of all members
gl::vecN< 4, T > Class Template Reference

#include <gl_vec.hh>

Collaboration diagram for gl::vecN< 4, T >:
Collaboration graph
[legend]

Public Member Functions

constexpr vecN ()
 
constexpr vecN (T t)
 
template<typename T2 >
constexpr vecN (const vecN< 4, T2 > &v)
 
constexpr vecN (T a, T b, T c, T d)
 
constexpr vecN (T a, const vecN< 3, T > &b)
 
constexpr vecN (const vecN< 3, T > &a, T b)
 
constexpr vecN (const vecN< 2, T > &a, const vecN< 2, T > &b)
 
constexpr T operator[] (unsigned i) const
 
constexpr T & operator[] (unsigned i)
 
constexpr const T * data () const
 
constexpr T * data ()
 
template<size_t I>
constexpr T get () const noexcept
 
template<size_t I>
constexpr T & get () noexcept
 
constexpr vecNoperator+= (const vecN &v)
 
constexpr vecNoperator-= (const vecN &v)
 
constexpr vecNoperator*= (const vecN &v)
 
constexpr vecNoperator*= (T t)
 
constexpr bool operator== (const vecN &) const =default
 

Public Attributes

x
 
y
 
z
 
w
 

Detailed Description

template<typename T>
class gl::vecN< 4, T >

Definition at line 131 of file gl_vec.hh.

Constructor & Destructor Documentation

◆ vecN() [1/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( )
inlineconstexpr

Definition at line 134 of file gl_vec.hh.

◆ vecN() [2/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( t)
inlineexplicitconstexpr

Definition at line 135 of file gl_vec.hh.

◆ vecN() [3/7]

template<typename T >
template<typename T2 >
constexpr gl::vecN< 4, T >::vecN ( const vecN< 4, T2 > &  v)
inlineexplicitconstexpr

Definition at line 137 of file gl_vec.hh.

◆ vecN() [4/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( a,
b,
c,
d 
)
inlineconstexpr

Definition at line 138 of file gl_vec.hh.

◆ vecN() [5/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( a,
const vecN< 3, T > &  b 
)
inlineconstexpr

Definition at line 139 of file gl_vec.hh.

◆ vecN() [6/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( const vecN< 3, T > &  a,
b 
)
inlineconstexpr

Definition at line 140 of file gl_vec.hh.

◆ vecN() [7/7]

template<typename T >
constexpr gl::vecN< 4, T >::vecN ( const vecN< 2, T > &  a,
const vecN< 2, T > &  b 
)
inlineconstexpr

Definition at line 141 of file gl_vec.hh.

Member Function Documentation

◆ data() [1/2]

template<typename T >
constexpr T * gl::vecN< 4, T >::data ( )
inlineconstexpr

Definition at line 159 of file gl_vec.hh.

◆ data() [2/2]

template<typename T >
constexpr const T * gl::vecN< 4, T >::data ( ) const
inlineconstexpr

Definition at line 158 of file gl_vec.hh.

◆ get() [1/2]

template<typename T >
template<size_t I>
constexpr T gl::vecN< 4, T >::get ( ) const
inlineconstexprnoexcept

Definition at line 161 of file gl_vec.hh.

◆ get() [2/2]

template<typename T >
template<size_t I>
constexpr T & gl::vecN< 4, T >::get ( )
inlineconstexprnoexcept

Definition at line 162 of file gl_vec.hh.

◆ operator*=() [1/2]

template<typename T >
constexpr vecN & gl::vecN< 4, T >::operator*= ( const vecN< 4, T > &  v)
inlineconstexpr

Definition at line 167 of file gl_vec.hh.

◆ operator*=() [2/2]

template<typename T >
constexpr vecN & gl::vecN< 4, T >::operator*= ( t)
inlineconstexpr

Definition at line 168 of file gl_vec.hh.

References t.

◆ operator+=()

template<typename T >
constexpr vecN & gl::vecN< 4, T >::operator+= ( const vecN< 4, T > &  v)
inlineconstexpr

Definition at line 165 of file gl_vec.hh.

◆ operator-=()

template<typename T >
constexpr vecN & gl::vecN< 4, T >::operator-= ( const vecN< 4, T > &  v)
inlineconstexpr

Definition at line 166 of file gl_vec.hh.

◆ operator==()

template<typename T >
constexpr bool gl::vecN< 4, T >::operator== ( const vecN< 4, T > &  ) const
constexprdefault

◆ operator[]() [1/2]

template<typename T >
constexpr T & gl::vecN< 4, T >::operator[] ( unsigned  i)
inlineconstexpr

Definition at line 150 of file gl_vec.hh.

References UNREACHABLE.

◆ operator[]() [2/2]

template<typename T >
constexpr T gl::vecN< 4, T >::operator[] ( unsigned  i) const
inlineconstexpr

Definition at line 143 of file gl_vec.hh.

References UNREACHABLE.

Member Data Documentation

◆ w

template<typename T >
T gl::vecN< 4, T >::w

Definition at line 173 of file gl_vec.hh.

◆ x

template<typename T >
T gl::vecN< 4, T >::x

Definition at line 173 of file gl_vec.hh.

◆ y

template<typename T >
T gl::vecN< 4, T >::y

Definition at line 173 of file gl_vec.hh.

◆ z

template<typename T >
T gl::vecN< 4, T >::z

Definition at line 173 of file gl_vec.hh.


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