Go to the documentation of this file.
31 template<
typename indexType>
181 if(cell.
x()<0)
return false;
182 if(cell.
y()<0)
return false;
183 if(cell.
z()<0)
return false;
191 bool isInRange(indexType i, indexType j, indexType k)
const
211 minP =
min(
min( p1, p2), p3)-extent;
212 maxP =
max(
max( p1, p2), p3)+extent;
INLINE_FUNCTION_H void setCellSize(realx3 cellSize)
INLINE_FUNCTION_HD indexType nz() const
INLINE_FUNCTION_HD bool isInRange(indexType i, indexType j, indexType k) const
INLINE_FUNCTION_HD cells & operator=(const cells &)=default
INLINE_FUNCTION_H cells(const box &domain, real cellSize)
INLINE_FUNCTION_HD void extendBox(const CellType &p1, const CellType &p2, const CellType &p3, indexType extent, CellType &minP, CellType &maxP) const
INLINE_FUNCTION_HD indexType nx() const
INLINE_FUNCTION_HD bool isInRange(const CellType &cell) const
INLINE_FUNCTION_HD void extendBox(const realx3 &p1, const realx3 &p2, const realx3 &p3, real extent, realx3 &minP, realx3 &maxP) const
INLINE_FUNCTION_HD realx3 maxPoint() const
INLINE_FUNCTION_HD bool pointIndexInDomain(const realx3 p, CellType &index) const
INLINE_FUNCTION_HD T & y()
triple< indexType > CellType
INLINE_FUNCTION_H void calculate()
INLINE_FUNCTION_HD CellType bound(CellType p) const
const auto & domain() const
INLINE_FUNCTION_HD cells()
#define INLINE_FUNCTION_H
INLINE_FUNCTION_HD bool inDomain(const realx3 &p) const
INLINE_FUNCTION_HD T & z()
T max(const Vector< T, Allocator > &v)
INLINE_FUNCTION_HD indexType ny() const
INLINE_FUNCTION_HD realx3 bound(realx3 p) const
INLINE_FUNCTION_HD realx3 cellSize() const
INLINE_FUNCTION_HD realx3 minPoint() const
INLINE_FUNCTION_HD T & x()
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_H void setCellSize(real cellSize)
INLINE_FUNCTION_HD CellType pointIndex(const realx3 &p) const
INLINE_FUNCTION_HD bool isInside(const realx3 &point) const
INLINE_FUNCTION_HD int64 totalCells() const
INLINE_FUNCTION_H cells(const box &domain, int32 nx, int32 ny, int32 nz)
const INLINE_FUNCTION_HD CellType & numCells() const
T min(const Vector< T, Allocator > &v)