This Class apply a shift transformation before converting to Cell-ID
Definition at line 26 of file CellDecomposer.hpp.
#include <CellDecomposer.hpp>
Public Member Functions | |
__device__ __host__ | shift (const Matrix< dim, T > &t, const Point< dim, T > &s) |
Constructor. | |
__device__ __host__ T | transform (const T(&s)[dim], const size_t i) const |
Shift the point transformation. | |
__device__ __host__ T | transform (const Point< dim, T > &s, const size_t i) const |
Shift the point transformation. | |
template<typename Mem > | |
__device__ __host__ T | transform (const encapc< 1, Point< dim, T >, Mem > &s, const size_t i) const |
Shift the point transformation. | |
__device__ __host__ void | setTransform (const Matrix< dim, T > &mat, const Point< dim, T > &orig) |
Set the transformation Matrix and shift. | |
const Point< dim, T > & | getOrig () const |
Get the shift vector. | |
const Matrix< dim, T > & | getMat () const |
Get the transformation Matrix. | |
bool | operator== (const shift< dim, T > &s) |
It return true if the shift match. | |
bool | operator!= (const shift< dim, T > &s) |
It return true if the shift is different. | |
Private Attributes | |
Point< dim, T > | sh |
Shift point. | |
Matrix< dim, T > | mat |
Matrix transformation. | |
|
inline |
Constructor.
t | Matrix transformation |
s | shift |
Definition at line 42 of file CellDecomposer.hpp.
|
inline |
Get the transformation Matrix.
Definition at line 114 of file CellDecomposer.hpp.
|
inline |
It return true if the shift is different.
s | shift to compare with |
Definition at line 138 of file CellDecomposer.hpp.
|
inline |
It return true if the shift match.
s | shift to compare with |
Definition at line 126 of file CellDecomposer.hpp.
|
inline |
Set the transformation Matrix and shift.
mat | Matrix transformation |
orig | origin point |
Definition at line 93 of file CellDecomposer.hpp.
|
inline |
Shift the point transformation.
s | source point |
i | coordinate |
Definition at line 82 of file CellDecomposer.hpp.
|
inline |
Shift the point transformation.
s | source point |
i | coordinate |
Definition at line 69 of file CellDecomposer.hpp.
|
inline |
Shift the point transformation.
s | source point |
i | coordinate |
Definition at line 56 of file CellDecomposer.hpp.
Matrix transformation.
Definition at line 32 of file CellDecomposer.hpp.
Shift point.
Definition at line 29 of file CellDecomposer.hpp.