template<class T, class Node, class NodeCreatorFunc = NodeCreator<Node>, class PositionFunc = PositionTrait<T>>
struct RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell
template<class T , class Node , class NodeCreatorFunc = NodeCreator<Node>, class PositionFunc = PositionTrait<T>>
static Cell RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::ComputeCell |
( |
float |
fx, |
|
|
float |
fy |
|
) |
| |
|
inlinestatic |
151 {
153 return c;
154 }
#define CELL_SIZE
Definition: RegularGrid.h:52
@ CELL_NUMBER
Definition: RegularGrid.h:48
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::CELL_NUMBER, and CELL_SIZE.
Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGridFor(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::insert(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectPoint(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectRay(), and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectZAllignedRay().
template<class T , class Node , class NodeCreatorFunc = NodeCreator<Node>, class PositionFunc = PositionTrait<T>>
bool RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::isValid |
( |
| ) |
const |
|
inline |
156{
return x >= 0 && x < CELL_NUMBER && y >= 0 &&
y <
CELL_NUMBER;}
int x
Definition: RegularGrid.h:147
int y
Definition: RegularGrid.h:147
References RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::CELL_NUMBER, RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::x, and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::Cell::y.
Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::insert(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectPoint(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectRay(), and RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::intersectZAllignedRay().