23#include "mongo/client/export_macros.h"
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary representa...
Definition bsonobj.h:78
Represents a 2D position (x, y).
Definition coordinates2d.h:40
Coordinates2D(double x, double y)
Coordinates2D constructor.
Definition coordinates2d.h:66
static size_t MONGO_CLIENT_FUNC dimensionality()
Get the dimensionality of this coordinate type.
Definition coordinates2d.h:127
virtual double operator[](size_t dimension) const
Get the value of this coordinate at the given dimension.
virtual BSONObj toBSON() const
Get a BSON representation of the coordinates.
double getY() const
Get the y coordinate.
Definition coordinates2d.h:82
Coordinates2D(const std::pair< double, double > &coords)
Coordinates2D constructor.
Coordinates2D(const std::vector< double > &coords)
Coordinates2D constructor.
virtual std::vector< double > getValues() const
Get the x and y coordinates.
std::pair< double, double > getValuesAsPair() const
Get the x and y coordinates as a std::pair.
double getX() const
Get the x coordinate.
Definition coordinates2d.h:73
Definition coordinates.h:28
Utility functions for parsing numbers from strings.
Definition compare_numbers.h:20