16     return sqrt(pow(p.
m_x - this->m_x, 2) + pow(p.
m_y - this->m_y, 2));
    23     double t = std::max(0.0, std::min(1.0, tSol));
    25     std::vector<double> res;
    26     res.push_back(proj.
x());
    27     res.push_back(proj.
y());
    39         double t = std::max(0.0, std::min(1.0, tSol));
    48     ss << 
"(" << std::fixed << std::setprecision(2) << 
m_x << 
", " << 
m_y << 
") ";
    64     return (dim == 0) ? 
m_x : 
m_y;
 double distanceToSegment(const Point &p1, const Point &p2) const 
Compute the distance between a point and a segment. 
 
bool samePointAs(const Point &p) const 
Check if two points share the same coordinates. 
 
static const double POINT_RADIUS
 
virtual std::string infos() const 
 
double distanceToPoint(const Point &p) const 
Calculate distance between two points. 
 
std::vector< double > projectionOnSegment(const Point &a, const Point &b) const 
 
#define EPS
Used to compare doubles.