114 double minDistanceTo(
const std::list<AGPosition>& positions)
const;
124 double minDistanceTo(
const std::map<int, AGPosition>& positions)
const;
A location in the 2D plane freely positioned on a street.
double getPosition() const
Provides the relative position of this AGPosition on the street.
double distanceTo(const AGPosition &otherPos) const
Computes the distance between two AGPosition objects.
const AGStreet & getStreet() const
Provides the street this AGPosition is located on.
void print() const
Prints out a summary of the properties of this class on standard output.
bool operator==(const AGPosition &pos) const
Tests whether two positions are at the same place.
double minDistanceTo(const std::list< AGPosition > &positions) const
Computes the distance to the closest position in a list.
static double randomPositionInStreet(const AGStreet &street)
Determines a random relative position on a street.
Position compute2dPosition() const
A model of the street in the city.
A point in 2D or 3D with translation and scaling methods.