Public Types | |
enum | unit_type { RADIANS, DEGREES } |
typedef P_Pixel_base< T, V > | Pixel_type |
typedef T | coord_type |
typedef T | distance_type |
typedef V | value_type |
Public Member Functions | |
P_Pixel_base (const coord_type *lat, const coord_type *lon, const value_type &val=value_type(0)) | |
P_Pixel_base (const P_Pixel_base &other) | |
P_Pixel_base & | operator= (const P_Pixel_base &other) |
bool | operator< (const Pixel_type &other) const |
bool | operator== (const Pixel_type &other) const |
coord_type | get_lat () const |
coord_type | get_lon () const |
value_type | get_val () const |
distance_type | distance (const Pixel_type &other) const |
void | get_neighbours (vector< Pixel_type > &neighbours, const vector< Pixel_type > &pixels, distance_type resolution, bool sorted=false) |
Static Public Attributes | |
static const coord_type | DEFAULT_RESOLUTION |
static const coord_type | R_EARTH = 6371.005076 |
static const coord_type | R_EARTH_EQUATORIAL = 6378.137 |
static const coord_type | R_EARTH_POLAR = 6356.7523 |
static const distance_type | DEG2RAD |
static const distance_type | RAD2DEG |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Pixel_type &pixel) |
in the same way that Pixel_base but which uses pointers for lat,lon instead of inner values. It is useful when a collection of points have been already loaded in a non sorted vector, and the user doesn't want to duplicate their values.