|
virtual std::vector< double > | getValues () const =0 |
| Get the values of these coordinates as a vector of doubles. More...
|
|
virtual BSONObj | toBSON () const =0 |
| Obtain a BSON representation of these coordinates. More...
|
|
virtual double | operator[] (size_t dimension) const =0 |
| Obtain the value of these coordinates in a particular dimension. More...
|
|
virtual std::vector<double> mongo::geo::Coordinates::getValues |
( |
| ) |
const |
|
pure virtual |
virtual double mongo::geo::Coordinates::operator[] |
( |
size_t |
dimension | ) |
const |
|
pure virtual |
Obtain the value of these coordinates in a particular dimension.
- Parameters
-
dimension | The dimension whose coordinate value to return. 0 for x or longitude, 1 for y or latitude |
- Returns
- The value of these coordinates in the given dimension.
Implemented in mongo::geo::Coordinates2D, and mongo::geo::Coordinates2DGeographic.
virtual BSONObj mongo::geo::Coordinates::toBSON |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: