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

#include <gl_vec.hh>

Inheritance diagram for gl::vecN< N, T >:
Inheritance graph
[legend]

Public Member Functions

constexpr vecN ()
 
constexpr vecN (T x)
 
template<typename T2 >
constexpr vecN (const vecN< N, T2 > &x)
 
template<int N2>
constexpr vecN (const vecN< N2, T > &x)
 
constexpr vecN (T x, T y)
 
constexpr vecN (T x, T y, T z)
 
constexpr vecN (T x, T y, T z, T w)
 
template<int N2>
constexpr vecN (T x, const vecN< N2, T > &y)
 
template<int N1>
constexpr vecN (const vecN< N1, T > &x, T y)
 
template<int N1, int N2>
constexpr vecN (const vecN< N1, T > &x, const vecN< N2, T > &y)
 
constexpr T operator[] (unsigned i) const
 
constexpr T & operator[] (unsigned i)
 
template<size_t I>
constexpr T get () const noexcept
 
template<size_t I>
constexpr T & get () noexcept
 
constexpr vecNoperator+= (const vecN &x)
 
constexpr vecNoperator-= (const vecN &x)
 
constexpr vecNoperator*= (const vecN &x)
 
constexpr vecNoperator*= (T x)
 

Detailed Description

template<int N, typename T>
class gl::vecN< N, T >

Definition at line 30 of file gl_vec.hh.

Constructor & Destructor Documentation

◆ vecN() [1/10]

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

Definition at line 36 of file gl_vec.hh.

References openmsx::N, and xrange().

◆ vecN() [2/10]

template<int N, typename T >
constexpr gl::vecN< N, T >::vecN ( x)
inlineexplicitconstexpr

Definition at line 42 of file gl_vec.hh.

References openmsx::N, openmsx::x, and xrange().

◆ vecN() [3/10]

template<int N, typename T >
template<typename T2 >
constexpr gl::vecN< N, T >::vecN ( const vecN< N, T2 > &  x)
inlineexplicitconstexpr

Definition at line 49 of file gl_vec.hh.

References openmsx::N, openmsx::x, and xrange().

◆ vecN() [4/10]

template<int N, typename T >
template<int N2>
constexpr gl::vecN< N, T >::vecN ( const vecN< N2, T > &  x)
inlineexplicitconstexpr

Definition at line 55 of file gl_vec.hh.

References openmsx::N, openmsx::N2, openmsx::x, and xrange().

◆ vecN() [5/10]

template<int N, typename T >
constexpr gl::vecN< N, T >::vecN ( x,
y 
)
inlineconstexpr

Definition at line 62 of file gl_vec.hh.

References openmsx::N.

◆ vecN() [6/10]

template<int N, typename T >
constexpr gl::vecN< N, T >::vecN ( x,
y,
z 
)
inlineconstexpr

Definition at line 69 of file gl_vec.hh.

References openmsx::N.

◆ vecN() [7/10]

template<int N, typename T >
constexpr gl::vecN< N, T >::vecN ( x,
y,
z,
w 
)
inlineconstexpr

Definition at line 76 of file gl_vec.hh.

References openmsx::N.

◆ vecN() [8/10]

template<int N, typename T >
template<int N2>
constexpr gl::vecN< N, T >::vecN ( x,
const vecN< N2, T > &  y 
)
inlineconstexpr

Definition at line 84 of file gl_vec.hh.

References openmsx::N, openmsx::N2, openmsx::x, and xrange().

◆ vecN() [9/10]

template<int N, typename T >
template<int N1>
constexpr gl::vecN< N, T >::vecN ( const vecN< N1, T > &  x,
y 
)
inlineconstexpr

Definition at line 93 of file gl_vec.hh.

References openmsx::N, openmsx::N1, openmsx::x, and xrange().

◆ vecN() [10/10]

template<int N, typename T >
template<int N1, int N2>
constexpr gl::vecN< N, T >::vecN ( const vecN< N1, T > &  x,
const vecN< N2, T > &  y 
)
inlineconstexpr

Definition at line 102 of file gl_vec.hh.

References openmsx::N, openmsx::N1, openmsx::N2, openmsx::x, and xrange().

Member Function Documentation

◆ get() [1/2]

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

Definition at line 124 of file gl_vec.hh.

◆ get() [2/2]

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

Definition at line 125 of file gl_vec.hh.

◆ operator*=() [1/2]

template<int N, typename T >
constexpr vecN& gl::vecN< N, T >::operator*= ( const vecN< N, T > &  x)
inlineconstexpr

Definition at line 130 of file gl_vec.hh.

References openmsx::x.

◆ operator*=() [2/2]

template<int N, typename T >
constexpr vecN& gl::vecN< N, T >::operator*= ( x)
inlineconstexpr

Definition at line 131 of file gl_vec.hh.

References openmsx::x.

◆ operator+=()

template<int N, typename T >
constexpr vecN& gl::vecN< N, T >::operator+= ( const vecN< N, T > &  x)
inlineconstexpr

Definition at line 128 of file gl_vec.hh.

References openmsx::x.

◆ operator-=()

template<int N, typename T >
constexpr vecN& gl::vecN< N, T >::operator-= ( const vecN< N, T > &  x)
inlineconstexpr

Definition at line 129 of file gl_vec.hh.

References openmsx::x.

◆ operator[]() [1/2]

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

Definition at line 116 of file gl_vec.hh.

References openmsx::N.

◆ operator[]() [2/2]

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

Definition at line 110 of file gl_vec.hh.

References openmsx::N.


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