|
Stride Reference Manual
- generated for commit 9643b11
|
KdTree for some more information on methods. More...
#include <KdTree2DPoint.h>

Classes | |
| struct | dimension_type |
Public Member Functions | |
| KdTree2DPoint () | |
| Default constructor. More... | |
| KdTree2DPoint (const Location *loc) | |
| Constructor with Location. More... | |
| KdTree2DPoint (double longt, double lat) | |
| Constructor with longitude and latitude. More... | |
| bool | operator== (const KdTree2DPoint &other) const |
| Equal if within one meter of one another. More... | |
| double | Distance (const KdTree2DPoint &other) const |
| Distance in kilometers, following great circle distance on a speroid earth. More... | |
| template<std::size_t D> | |
| double | Get () const |
| const Location * | GetLocation () const |
| Retrieve the location. More... | |
| Coordinate | GetPoint () const |
| Get the coordinate for this Location. More... | |
| bool | InBox (const AABBox< KdTree2DPoint > &box) const |
| bool | InRadius (const KdTree2DPoint &start, double radius) const |
Does the point lie within radius km from start? More... | |
Static Public Attributes | |
| static constexpr std::size_t | dim = 2 |
Private Attributes | |
| Coordinate | m_pt |
| Shortcut for access without dereferencing. More... | |
| const Location * | m_location |
| The underlying location. More... | |
KdTree for some more information on methods.
Definition at line 31 of file KdTree2DPoint.h.
|
inline |
Default constructor.
Definition at line 46 of file KdTree2DPoint.h.
|
explicit |
Constructor with Location.
Definition at line 30 of file KdTree2DPoint.cpp.
Constructor with longitude and latitude.
Definition at line 52 of file KdTree2DPoint.h.
References Distance(), and operator==().

| bool geopop::geogrid_detail::KdTree2DPoint::operator== | ( | const KdTree2DPoint & | other | ) | const |
Equal if within one meter of one another.
Definition at line 32 of file KdTree2DPoint.cpp.
References Distance().
Referenced by KdTree2DPoint().


| double geopop::geogrid_detail::KdTree2DPoint::Distance | ( | const KdTree2DPoint & | other | ) | const |
Distance in kilometers, following great circle distance on a speroid earth.
Definition at line 41 of file KdTree2DPoint.cpp.
References m_pt.
Referenced by InRadius(), KdTree2DPoint(), and operator==().

|
inline |
Definition at line 62 of file KdTree2DPoint.h.
References m_pt.
|
inline |
Retrieve the location.
Definition at line 69 of file KdTree2DPoint.h.
References m_location.
Referenced by geopop::GeoAggregator< Policy >::operator()().

|
inline |
Get the coordinate for this Location.
Definition at line 72 of file KdTree2DPoint.h.
References InBox(), InRadius(), and m_pt.
Referenced by geopop::PolygonPolicy::Contains().


| bool geopop::geogrid_detail::KdTree2DPoint::InBox | ( | const AABBox< KdTree2DPoint > & | box | ) | const |
Definition at line 34 of file KdTree2DPoint.cpp.
References geopop::AABBox< P >::lower, m_pt, and geopop::AABBox< P >::upper.
Referenced by GetPoint().

| bool geopop::geogrid_detail::KdTree2DPoint::InRadius | ( | const KdTree2DPoint & | start, |
| double | radius | ||
| ) | const |
Does the point lie within radius km from start?
Definition at line 39 of file KdTree2DPoint.cpp.
References Distance().
Referenced by geopop::RadiusPolicy::Contains(), and GetPoint().


|
static |
Definition at line 35 of file KdTree2DPoint.h.
|
private |
Shortcut for access without dereferencing.
Definition at line 81 of file KdTree2DPoint.h.
Referenced by Distance(), Get(), GetPoint(), and InBox().
|
private |
The underlying location.
Definition at line 82 of file KdTree2DPoint.h.
Referenced by GetLocation().