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

#include <gl_vec.hh>

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

Public Member Functions

constexpr vecN ()
 
constexpr vecN (T t)
 
template<typename T2 >
constexpr vecN (const vecN< 3, T2 > &v)
 
constexpr vecN (const vecN< 4, T > &v)
 
constexpr vecN (T a, T b, T c)
 
constexpr vecN (T a, const vecN< 2, T > &b)
 
constexpr vecN (const vecN< 2, T > &a, 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
 

Friends

constexpr friend vecN operator+ (const vecN &v1, const vecN &v2)
 
constexpr friend vecN operator- (const vecN &v1, const vecN &v2)
 
constexpr friend vecN operator* (T a, const vecN &v)
 
constexpr friend vecN operator* (const vecN &v, T a)
 
constexpr friend vecN operator* (const vecN &v1, const vecN &v2)
 
constexpr friend vecN recip (const vecN &v)
 
constexpr friend vecN operator/ (T a, const vecN &v)
 
constexpr friend vecN operator/ (const vecN &v, T a)
 
constexpr friend vecN operator/ (const vecN &v1, const vecN &v2)
 
std::ostream & operator<< (std::ostream &os, const vecN &v)
 

Detailed Description

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

Definition at line 156 of file gl_vec.hh.

Constructor & Destructor Documentation

◆ vecN() [1/7]

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

Definition at line 159 of file gl_vec.hh.

◆ vecN() [2/7]

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

Definition at line 160 of file gl_vec.hh.

◆ vecN() [3/7]

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

Definition at line 162 of file gl_vec.hh.

◆ vecN() [4/7]

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

Definition at line 163 of file gl_vec.hh.

◆ vecN() [5/7]

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

Definition at line 164 of file gl_vec.hh.

◆ vecN() [6/7]

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

Definition at line 165 of file gl_vec.hh.

◆ vecN() [7/7]

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

Definition at line 166 of file gl_vec.hh.

Member Function Documentation

◆ data() [1/2]

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

Definition at line 182 of file gl_vec.hh.

◆ data() [2/2]

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

Definition at line 181 of file gl_vec.hh.

◆ get() [1/2]

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

Definition at line 184 of file gl_vec.hh.

◆ get() [2/2]

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

Definition at line 185 of file gl_vec.hh.

◆ operator*=() [1/2]

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

Definition at line 189 of file gl_vec.hh.

◆ operator*=() [2/2]

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

Definition at line 190 of file gl_vec.hh.

References t.

◆ operator+=()

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

Definition at line 187 of file gl_vec.hh.

◆ operator-=()

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

Definition at line 188 of file gl_vec.hh.

◆ operator==()

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

◆ operator[]() [1/2]

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

Definition at line 174 of file gl_vec.hh.

References UNREACHABLE.

◆ operator[]() [2/2]

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

Definition at line 168 of file gl_vec.hh.

References UNREACHABLE.

Friends And Related Symbol Documentation

◆ operator* [1/3]

template<typename T >
constexpr friend vecN operator* ( const vecN< 3, T > &  v,
a 
)
friend

Definition at line 216 of file gl_vec.hh.

◆ operator* [2/3]

template<typename T >
constexpr friend vecN operator* ( const vecN< 3, T > &  v1,
const vecN< 3, T > &  v2 
)
friend

Definition at line 223 of file gl_vec.hh.

◆ operator* [3/3]

template<typename T >
constexpr friend vecN operator* ( a,
const vecN< 3, T > &  v 
)
friend

Definition at line 209 of file gl_vec.hh.

◆ operator+

template<typename T >
constexpr friend vecN operator+ ( const vecN< 3, T > &  v1,
const vecN< 3, T > &  v2 
)
friend

Definition at line 195 of file gl_vec.hh.

◆ operator-

template<typename T >
constexpr friend vecN operator- ( const vecN< 3, T > &  v1,
const vecN< 3, T > &  v2 
)
friend

Definition at line 202 of file gl_vec.hh.

◆ operator/ [1/3]

template<typename T >
constexpr friend vecN operator/ ( const vecN< 3, T > &  v,
a 
)
friend

Definition at line 243 of file gl_vec.hh.

◆ operator/ [2/3]

template<typename T >
constexpr friend vecN operator/ ( const vecN< 3, T > &  v1,
const vecN< 3, T > &  v2 
)
friend

Definition at line 248 of file gl_vec.hh.

◆ operator/ [3/3]

template<typename T >
constexpr friend vecN operator/ ( a,
const vecN< 3, T > &  v 
)
friend

Definition at line 238 of file gl_vec.hh.

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream &  os,
const vecN< 3, T > &  v 
)
friend

Definition at line 253 of file gl_vec.hh.

◆ recip

template<typename T >
constexpr friend vecN recip ( const vecN< 3, T > &  v)
friend

Definition at line 231 of file gl_vec.hh.

Member Data Documentation

◆ x

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

Definition at line 263 of file gl_vec.hh.

◆ y

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

Definition at line 263 of file gl_vec.hh.

◆ z

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

Definition at line 263 of file gl_vec.hh.


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