Definition at line 85 of file DBScanAlg.cxx.
AcceptEllipse::AcceptEllipse |
( |
const BoundingBox & |
b, |
|
|
double |
r1, |
|
|
double |
r2 |
|
) |
| |
|
inlineexplicit |
AcceptEllipse::AcceptEllipse |
( |
| ) |
|
|
inlineprivate |
bool AcceptEllipse::operator() |
( |
const RTree::Node *const |
node | ) |
const |
|
inline |
bool AcceptEllipse::operator() |
( |
const RTree::Leaf *const |
leaf | ) |
const |
|
inline |
Definition at line 103 of file DBScanAlg.cxx.
106 C[0] = (leaf->bound.edges[0].second + leaf->bound.edges[0].first)/2.0;
107 C[1] = (leaf->bound.edges[1].second + leaf->bound.edges[1].first)/2.0;
108 D[0] = (leaf->bound.edges[0].second - leaf->bound.edges[0].first)/2.0;
109 D[1] = (leaf->bound.edges[1].second - leaf->bound.edges[1].first)/2.0;
111 for (
int i=0; i<2; ++i){
114 t += ((
c[i]-C[i])*(
c[i]-C[i]))/((
d[i]+D[i])*(
d[i]+D[i]));
double c[2]
center of the bounding box
double AcceptEllipse::c[2] |
double AcceptEllipse::d[2] |
double AcceptEllipse::r[2] |
The documentation for this struct was generated from the following file: