nngn
|
#include <vec2.h>
Public Member Functions | |
constexpr | vec2_base ()=default |
constexpr | vec2_base (T v) |
constexpr | vec2_base (T p_x, T p_y) |
constexpr vec2_base< T > | xx () const |
constexpr vec2_base< T > | xy () const |
constexpr vec2_base< T > | yx () const |
constexpr vec2_base< T > | yy () const |
Public Member Functions inherited from nngn::vec< vec2_base, T, 2 > | |
constexpr | operator vec2_base< U > (void) const |
constexpr vec & | operator= (const vec2_base< T > &v) |
constexpr T & | operator[] (std::size_t i) |
constexpr const T & | operator[] (std::size_t i) const |
constexpr vec2_base< T > | operator- (void) const |
constexpr vec2_base< T > & | operator+= (T t) |
constexpr vec2_base< T > & | operator+= (const vec2_base< T > &v) |
constexpr vec2_base< T > & | operator-= (T t) |
constexpr vec2_base< T > & | operator-= (const vec2_base< T > &v) |
constexpr vec2_base< T > & | operator*= (T t) |
constexpr vec2_base< T > & | operator*= (const vec2_base< T > &v) |
constexpr vec2_base< T > & | operator/= (T t) |
constexpr vec2_base< T > & | operator/= (const vec2_base< T > &v) |
constexpr T & | get (void) |
constexpr const T & | get (void) const |
constexpr T * | data (void) |
constexpr const T * | data (void) const |
constexpr auto | as_tuple (void) const |
Public Attributes | |
T | x |
T | y |
Additional Inherited Members | |
Public Types inherited from nngn::vec< vec2_base, T, 2 > | |
using | type |
Static Public Member Functions inherited from nngn::vec< vec2_base, T, 2 > | |
static constexpr vec2_base< R > | map (F f, Args &&...args) |
static constexpr vec2_base< R > | map_impl (F f, std::index_sequence< I... >, const vec &v) |
static constexpr vec2_base< R > | map_impl (F f, std::index_sequence< I... >, T t, const vec &v0) |
static constexpr vec2_base< R > | map_impl (F f, std::index_sequence< I... >, const vec &v0, T t) |
static constexpr vec2_base< R > | map_impl (F f, std::index_sequence< I... >, const vec &v0, const vec &v1) |
Static Public Attributes inherited from nngn::vec< vec2_base, T, 2 > | |
static constexpr std::size_t | n_dim |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
T nngn::vec2_base< T >::x |
T nngn::vec2_base< T >::y |