Incendie
|
Normalement inutile, permet de ne pas utilise -lm lors compilation More...
#include <coordonnee.h>
Public Member Functions | |
Coordonnee (int _x, int _y) | |
Coordonnee (const Coordonnee &other) | |
virtual bool | operator== (const Coordonnee &other) const |
std::ostream & | print (std::ostream &out) const |
unsigned | manhattanDistance (const Coordonnee &other) const |
float | euclideanDistance (const Coordonnee &other) const |
Public Attributes | |
int | col |
int | row |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Coordonnee &coord) |
Normalement inutile, permet de ne pas utilise -lm lors compilation
float Coordonnee::euclideanDistance | ( | const Coordonnee & | other | ) | const |
Calcul de la distance euclidienne entre deux points
unsigned Coordonnee::manhattanDistance | ( | const Coordonnee & | other | ) | const |
Calcul de la distance Manhattan entre deux points