SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::Impl< 2, T > Struct Template Reference

#include <VecTypes.h>

specialization for size == 2 More...

Detailed Description

template<class TCoord, class TDeriv, class TReal = typename TCoord::value_type>
template<class T>
struct sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::Impl< 2, T >

specialization for size == 2

Static Public Member Functions

static void set (Coord &c, T x, T y, T)
 
static void get (T &x, T &y, T &z, const Coord &c)
 
static void add (Coord &c, T x, T y, T)
 

Function details

template<class TCoord, class TDeriv, class TReal = typename TCoord::value_type>
template<class T >
static void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::Impl< 2, T >::add ( Coord c,
x,
y,
 
)
inlinestatic
template<class TCoord, class TDeriv, class TReal = typename TCoord::value_type>
template<class T >
static void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::Impl< 2, T >::get ( T &  x,
T &  y,
T &  z,
const Coord c 
)
inlinestatic
template<class TCoord, class TDeriv, class TReal = typename TCoord::value_type>
template<class T >
static void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::Impl< 2, T >::set ( Coord c,
x,
y,
 
)
inlinestatic