openMSX
|
#include <gl_vec.hh>
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 vecN & | operator+= (const vecN &v) |
constexpr vecN & | operator-= (const vecN &v) |
constexpr vecN & | operator*= (const vecN &v) |
constexpr vecN & | operator*= (T t) |
constexpr bool | operator== (const vecN &) const =default |
Public Attributes | |
T | x |
T | y |
T | 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) |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefault |
|
inlineconstexpr |
Definition at line 174 of file gl_vec.hh.
References UNREACHABLE.
|
inlineconstexpr |
Definition at line 168 of file gl_vec.hh.
References UNREACHABLE.
|
friend |