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

#include <vec3.h>

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

Public Member Functions

constexpr vec3_base ()=default
 
constexpr vec3_base (T v)
 
constexpr vec3_base (T p_x, T p_y)
 
constexpr vec3_base (T p_x, T p_y, T p_z)
 
constexpr vec3_base (const vec2_base< T > &v)
 
constexpr vec3_base (const vec2_base< T > &v, T p_z)
 
constexpr vec3_base (T p_x, const vec2_base< T > &v)
 
constexpr vec2_base< Txx () const
 
constexpr vec2_base< Txy () const
 
constexpr vec2_base< Txz () const
 
constexpr vec2_base< Tyx () const
 
constexpr vec2_base< Tyy () const
 
constexpr vec2_base< Tyz () const
 
constexpr vec2_base< Tzx () const
 
constexpr vec2_base< Tzy () const
 
constexpr vec2_base< Tzz () const
 
constexpr vec3_base< Txxx () const
 
constexpr vec3_base< Txxy () const
 
constexpr vec3_base< Txxz () const
 
constexpr vec3_base< Txyx () const
 
constexpr vec3_base< Txyy () const
 
constexpr vec3_base< Txyz () const
 
constexpr vec3_base< Txzx () const
 
constexpr vec3_base< Txzy () const
 
constexpr vec3_base< Txzz () const
 
constexpr vec3_base< Tyxx () const
 
constexpr vec3_base< Tyxy () const
 
constexpr vec3_base< Tyxz () const
 
constexpr vec3_base< Tyyx () const
 
constexpr vec3_base< Tyyy () const
 
constexpr vec3_base< Tyyz () const
 
constexpr vec3_base< Tyzx () const
 
constexpr vec3_base< Tyzy () const
 
constexpr vec3_base< Tyzz () const
 
constexpr vec3_base< Tzxx () const
 
constexpr vec3_base< Tzxy () const
 
constexpr vec3_base< Tzxz () const
 
constexpr vec3_base< Tzyx () const
 
constexpr vec3_base< Tzyy () const
 
constexpr vec3_base< Tzyz () const
 
constexpr vec3_base< Tzzx () const
 
constexpr vec3_base< Tzzy () const
 
constexpr vec3_base< Tzzz () const
 
- Public Member Functions inherited from nngn::vec< vec3_base, T, 3 >
constexpr operator vec3_base< U > (void) const
 
constexpr vecoperator= (const vec3_base< T > &v)
 
constexpr Toperator[] (std::size_t i)
 
constexpr const Toperator[] (std::size_t i) const
 
constexpr vec3_base< Toperator- (void) const
 
constexpr vec3_base< T > & operator+= (T t)
 
constexpr vec3_base< T > & operator+= (const vec3_base< T > &v)
 
constexpr vec3_base< T > & operator-= (T t)
 
constexpr vec3_base< T > & operator-= (const vec3_base< T > &v)
 
constexpr vec3_base< T > & operator*= (T t)
 
constexpr vec3_base< T > & operator*= (const vec3_base< T > &v)
 
constexpr vec3_base< T > & operator/= (T t)
 
constexpr vec3_base< T > & operator/= (const vec3_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
 
T z
 

Additional Inherited Members

- Public Types inherited from nngn::vec< vec3_base, T, 3 >
using type
 
- Static Public Member Functions inherited from nngn::vec< vec3_base, T, 3 >
static constexpr vec3_base< R > map (F f, Args &&...args)
 
static constexpr vec3_base< R > map_impl (F f, std::index_sequence< I... >, const vec &v)
 
static constexpr vec3_base< R > map_impl (F f, std::index_sequence< I... >, T t, const vec &v0)
 
static constexpr vec3_base< R > map_impl (F f, std::index_sequence< I... >, const vec &v0, T t)
 
static constexpr vec3_base< R > map_impl (F f, std::index_sequence< I... >, const vec &v0, const vec &v1)
 
- Static Public Attributes inherited from nngn::vec< vec3_base, T, 3 >
static constexpr std::size_t n_dim
 

Constructor & Destructor Documentation

◆ vec3_base() [1/7]

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

◆ vec3_base() [2/7]

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

◆ vec3_base() [3/7]

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

◆ vec3_base() [4/7]

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

◆ vec3_base() [5/7]

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

◆ vec3_base() [6/7]

template<typename T >
nngn::vec3_base< T >::vec3_base ( const vec2_base< T > & v,
T p_z )
inlineconstexpr

◆ vec3_base() [7/7]

template<typename T >
nngn::vec3_base< T >::vec3_base ( T p_x,
const vec2_base< T > & v )
inlineconstexpr

Member Function Documentation

◆ xx()

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

◆ xxx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xxx ( ) const
inlineconstexpr

◆ xxy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xxy ( ) const
inlineconstexpr

◆ xxz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xxz ( ) const
inlineconstexpr

◆ xy()

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

◆ xyx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xyx ( ) const
inlineconstexpr

◆ xyy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xyy ( ) const
inlineconstexpr

◆ xyz()

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

◆ xz()

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

◆ xzx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xzx ( ) const
inlineconstexpr

◆ xzy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xzy ( ) const
inlineconstexpr

◆ xzz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::xzz ( ) const
inlineconstexpr

◆ yx()

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

◆ yxx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yxx ( ) const
inlineconstexpr

◆ yxy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yxy ( ) const
inlineconstexpr

◆ yxz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yxz ( ) const
inlineconstexpr

◆ yy()

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

◆ yyx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yyx ( ) const
inlineconstexpr

◆ yyy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yyy ( ) const
inlineconstexpr

◆ yyz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yyz ( ) const
inlineconstexpr

◆ yz()

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

◆ yzx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yzx ( ) const
inlineconstexpr

◆ yzy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yzy ( ) const
inlineconstexpr

◆ yzz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::yzz ( ) const
inlineconstexpr

◆ zx()

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

◆ zxx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zxx ( ) const
inlineconstexpr

◆ zxy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zxy ( ) const
inlineconstexpr

◆ zxz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zxz ( ) const
inlineconstexpr

◆ zy()

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

◆ zyx()

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

◆ zyy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zyy ( ) const
inlineconstexpr

◆ zyz()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zyz ( ) const
inlineconstexpr

◆ zz()

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

◆ zzx()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zzx ( ) const
inlineconstexpr

◆ zzy()

template<typename T >
vec3_base< T > nngn::vec3_base< T >::zzy ( ) const
inlineconstexpr

◆ zzz()

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

Member Data Documentation

◆ x

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

◆ y

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

◆ z

template<typename T >
T nngn::vec3_base< T >::z

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