SOFA API  fdacdac3
Open source framework for multi-physics simuation
sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal > Class Template Reference

#include <VecTypes.h>

Classes

struct  Impl
 

Static Public Attributes

static constexpr sofa::Size spatial_dimensions = Coord::spatial_dimensions
 
static constexpr sofa::Size coord_total_size = Coord::total_size
 
static constexpr sofa::Size deriv_total_size = Deriv::total_size
 

Static Public Member Functions

static constexpr const CPosgetCPos (const Coord &c)
 
static constexpr void setCPos (Coord &c, const CPos &v)
 
static constexpr const DPosgetDPos (const Deriv &d)
 
static constexpr void setDPos (Deriv &d, const DPos &v)
 
template<typename T >
static constexpr void set (Coord &c, T x, T y, T z)
 
template<typename T >
static constexpr void get (T &x, T &y, T &z, const Coord &c)
 
static Deriv randomDeriv (Real minMagnitude, Real maxMagnitude)
 Return a Deriv with random value. Each entry with magnitude smaller than the given value. More...
 
static constexpr Deriv coordDifference (const Coord &c1, const Coord &c2)
 
template<typename T >
static constexpr void add (Coord &c, T x, T y, T z)
 
static constexpr const charName ()
 
static Coord interpolate (const type::vector< Coord > &ancestors, const type::vector< Real > &coefs)
 

Attribute details

◆ coord_total_size

template<class TCoord , class TDeriv , class TReal >
constexpr sofa::Size sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::coord_total_size = Coord::total_size
staticconstexpr

◆ deriv_total_size

template<class TCoord , class TDeriv , class TReal >
constexpr sofa::Size sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::deriv_total_size = Deriv::total_size
staticconstexpr

◆ spatial_dimensions

template<class TCoord , class TDeriv , class TReal >
constexpr sofa::Size sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::spatial_dimensions = Coord::spatial_dimensions
staticconstexpr

Function details

◆ add()

template<class TCoord , class TDeriv , class TReal >
template<typename T >
static constexpr void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::add ( Coord c,
x,
y,
z 
)
inlinestaticconstexpr

◆ coordDifference()

template<class TCoord , class TDeriv , class TReal >
static constexpr Deriv sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::coordDifference ( const Coord c1,
const Coord c2 
)
inlinestaticconstexpr

◆ get()

template<class TCoord , class TDeriv , class TReal >
template<typename T >
static constexpr void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::get ( T &  x,
T &  y,
T &  z,
const Coord c 
)
inlinestaticconstexpr

◆ getCPos()

template<class TCoord , class TDeriv , class TReal >
static constexpr const CPos& sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::getCPos ( const Coord c)
inlinestaticconstexpr

◆ getDPos()

template<class TCoord , class TDeriv , class TReal >
static constexpr const DPos& sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::getDPos ( const Deriv d)
inlinestaticconstexpr

◆ interpolate()

template<class TCoord , class TDeriv , class TReal >
static Coord sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::interpolate ( const type::vector< Coord > &  ancestors,
const type::vector< Real > &  coefs 
)
inlinestatic

◆ Name()

constexpr const char * sofa::defaulttype::Vec6fTypes::Name
staticconstexpr

◆ randomDeriv()

template<class TCoord , class TDeriv , class TReal >
static Deriv sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::randomDeriv ( Real  minMagnitude,
Real  maxMagnitude 
)
inlinestatic

Return a Deriv with random value. Each entry with magnitude smaller than the given value.

◆ set()

template<class TCoord , class TDeriv , class TReal >
template<typename T >
static constexpr void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::set ( Coord c,
x,
y,
z 
)
inlinestaticconstexpr

◆ setCPos()

template<class TCoord , class TDeriv , class TReal >
static constexpr void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::setCPos ( Coord c,
const CPos v 
)
inlinestaticconstexpr

◆ setDPos()

template<class TCoord , class TDeriv , class TReal >
static constexpr void sofa::defaulttype::StdVectorTypes< TCoord, TDeriv, TReal >::setDPos ( Deriv d,
const DPos v 
)
inlinestaticconstexpr