Default connection type for 2-D grids with 4- or 8-cell connectivity.
More...
#include <Acts/Clusterization/Clusterization.hpp>
|
| | Connect2D (bool commonCorner) |
| | Constructor.
|
| virtual ConnectResult | operator() (const Cell &ref, const Cell &iter) const |
| | Check if two cells are connected.
|
|
|
bool | conn8 {true} |
| | Whether to use 8-cell connectivity (true) or 4-cell connectivity (false).
|
Default connection type for 2-D grids with 4- or 8-cell connectivity.
◆ Connect2D()
Constructor.
- Parameters
-
| commonCorner | Whether cells sharing only a corner are considered connected |
◆ operator()()
template<typename Cell>
| virtual ConnectResult Acts::Ccl::Connect2D< Cell >::operator() |
( |
const Cell & | ref, |
|
|
const Cell & | iter ) const |
|
virtual |
Check if two cells are connected.
- Parameters
-
| ref | Reference cell |
| iter | Candidate cell |
- Returns
- Connection result