nngn
Loading...
Searching...
No Matches
nngn::vec2_base< T > Struct Template Reference

#include <vec2.h>

Inheritance diagram for nngn::vec2_base< T >:
Collaboration diagram for nngn::vec2_base< T >:

Public Member Functions

constexpr vec2_base ()=default
 
constexpr vec2_base (T v)
 
constexpr vec2_base (T p_x, T p_y)
 
constexpr vec2_base< Txx () const
 
constexpr vec2_base< Txy () const
 
constexpr vec2_base< Tyx () const
 
constexpr vec2_base< Tyy () const
 
- Public Member Functions inherited from nngn::vec< vec2_base, T, 2 >
constexpr operator vec2_base< U > (void) const
 
constexpr vecoperator= (const vec2_base< T > &v)
 
constexpr Toperator[] (std::size_t i)
 
constexpr const Toperator[] (std::size_t i) const
 
constexpr vec2_base< Toperator- (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 Tget (void)
 
constexpr const Tget (void) const
 
constexpr Tdata (void)
 
constexpr const Tdata (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
 

Constructor & Destructor Documentation

◆ vec2_base() [1/3]

template<typename T >
nngn::vec2_base< T >::vec2_base ( )
constexprdefault

◆ vec2_base() [2/3]

template<typename T >
nngn::vec2_base< T >::vec2_base ( T v)
inlineexplicitconstexpr

◆ vec2_base() [3/3]

template<typename T >
nngn::vec2_base< T >::vec2_base ( T p_x,
T p_y )
inlineconstexpr

Member Function Documentation

◆ xx()

template<typename T >
vec2_base< T > nngn::vec2_base< T >::xx ( ) const
inlineconstexpr

◆ xy()

template<typename T >
vec2_base< T > nngn::vec2_base< T >::xy ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ yx()

template<typename T >
vec2_base< T > nngn::vec2_base< T >::yx ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ yy()

template<typename T >
vec2_base< T > nngn::vec2_base< T >::yy ( ) const
inlineconstexpr
Here is the caller graph for this function:

Member Data Documentation

◆ x

template<typename T >
T nngn::vec2_base< T >::x

◆ y

template<typename T >
T nngn::vec2_base< T >::y

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