openMSX
Public Member Functions | Friends | 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)
 

Friends

constexpr bool operator== (const vecN &x, const vecN &y)
 

Detailed Description

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

Definition at line 32 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 38 of file gl_vec.hh.

References xrange().

◆ vecN() [2/10]

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

Definition at line 44 of file gl_vec.hh.

References 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 51 of file gl_vec.hh.

References 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 57 of file gl_vec.hh.

◆ vecN() [5/10]

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

Definition at line 64 of file gl_vec.hh.

◆ vecN() [6/10]

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

Definition at line 71 of file gl_vec.hh.

◆ vecN() [7/10]

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

Definition at line 78 of file gl_vec.hh.

◆ 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 86 of file gl_vec.hh.

◆ 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 95 of file gl_vec.hh.

◆ 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 104 of file gl_vec.hh.

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 126 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 127 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 132 of file gl_vec.hh.

◆ operator*=() [2/2]

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

Definition at line 133 of file gl_vec.hh.

◆ operator+=()

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.

◆ operator-=()

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

Definition at line 131 of file gl_vec.hh.

◆ operator[]() [1/2]

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

Definition at line 118 of file gl_vec.hh.

◆ operator[]() [2/2]

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

Definition at line 112 of file gl_vec.hh.

Friends And Related Function Documentation

◆ operator==

template<int N, typename T >
constexpr bool operator== ( const vecN< N, T > &  x,
const vecN< N, T > &  y 
)
friend

Definition at line 138 of file gl_vec.hh.


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