OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
shift< dim, T > Class Template Reference

Detailed Description

template<unsigned int dim, typename T>
class shift< dim, T >

Definition at line 17 of file CellDecomposer.hpp.

Public Member Functions

 shift (const Matrix< dim, T > &t, const Point< dim, T > &s)
 Constructor. More...
 
transform (const T(&s)[dim], const size_t i) const
 Shift the point transformation. More...
 
transform (const Point< dim, T > &s, const size_t i) const
 Shift the point transformation. More...
 
template<typename Mem >
transform (const encapc< 1, Point< dim, T >, Mem > &s, const size_t i) const
 Shift the point transformation. More...
 
void setTransform (const Matrix< dim, T > &mat, const Point< dim, T > &orig)
 Set the transformation Matrix and shift. More...
 

Private Attributes

Point< dim, T > sh
 

Constructor & Destructor Documentation

template<unsigned int dim, typename T >
shift< dim, T >::shift ( const Matrix< dim, T > &  t,
const Point< dim, T > &  s 
)
inline

Constructor.

Parameters
tMatrix transformation
sshift

Definition at line 29 of file CellDecomposer.hpp.

Member Function Documentation

template<unsigned int dim, typename T >
void shift< dim, T >::setTransform ( const Matrix< dim, T > &  mat,
const Point< dim, T > &  orig 
)
inline

Set the transformation Matrix and shift.

Parameters
matMatrix transformation
origorigin point

Definition at line 79 of file CellDecomposer.hpp.

template<unsigned int dim, typename T >
T shift< dim, T >::transform ( const T(&)  s[dim],
const size_t  i 
) const
inline

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 42 of file CellDecomposer.hpp.

template<unsigned int dim, typename T >
T shift< dim, T >::transform ( const Point< dim, T > &  s,
const size_t  i 
) const
inline

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 55 of file CellDecomposer.hpp.

template<unsigned int dim, typename T >
template<typename Mem >
T shift< dim, T >::transform ( const encapc< 1, Point< dim, T >, Mem > &  s,
const size_t  i 
) const
inline

Shift the point transformation.

Parameters
ssource point
icoordinate
Returns
the transformed coordinate

Definition at line 68 of file CellDecomposer.hpp.


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