3 #ifndef __u2d_point_hpp
4 #define __u2d_point_hpp
51 static bool z_asc(
const U2dPoint& p1,
const U2dPoint& p2) {
return p1.m_Z < p2.m_Z; }
55 static bool z_desc(
const U2dPoint& p1,
const U2dPoint& p2) {
return p1.m_Z > p2.m_Z; }
73 void setXZ (
double x,
double z);
99 : m_X(p.getX()), m_Z(p.getZ())
151 typedef std::vector<U2dPoint> U2dPoints;
152 typedef std::vector<U2dPoint*> U2dPointsAr;
153 typedef std::vector<U2dPointsAr> U2dPointsMatrix;
double m_X
Definition: u2d_point.hpp:85
static double pDistance(const U2dPoint &p0, const U2dPoint &p1)
U2dPoint & operator=(const U2dPoint &p)
Definition: u2d_point.hpp:112
Definition: u2d_point.hpp:10
void setXZ(double x, double z)
Definition: u2d_point.hpp:132
void setZ(double z)
Definition: u2d_point.hpp:145
bool operator!=(const U2dPoint &) const
double getX() const
Definition: u2d_point.hpp:120
bool operator==(const U2dPoint &) const
double getZ() const
Definition: u2d_point.hpp:126
U2dPoint()
Definition: u2d_point.hpp:92
void setX(double x)
Definition: u2d_point.hpp:139
Definition: u2d_point.hpp:156
static int getNeighbour(const U2dPoint &p, std::vector< U2dPoint * > &p_ar)