3 #ifndef __u3d_point_hpp
4 #define __u3d_point_hpp
10 #define U3D_EPSILON 1.e-6
11 #define EQUAL_REALS(a,b) ( (fabs((a)-(b)) < U3D_EPSILON ? true : false) )
29 U3dPoint (
double x,
double y,
double z);
72 void setXYZ (
double x,
double y,
double z);
96 : m_X(0.0), m_Y(0.0), m_Z(0.0)
102 : m_X(p.getX()), m_Y(p.getY()), m_Z(p.getZ())
108 : m_X(x), m_Y(y), m_Z(z)
172 typedef std::vector<U3dPoint> U3dPoints;
173 typedef std::vector<U3dPoint*> U3dPointsAr;
174 typedef std::vector<U3dPointsAr> U3dPointsMatrix;
188 int getNeighbour(
U3dPoint p, U3dPointsAr p_ar);
void setXYZ(double x, double y, double z)
Definition: u3d_point.hpp:147
void setY(double y)
Definition: u3d_point.hpp:161
double m_X
Definition: u3d_point.hpp:88
void setX(double x)
Definition: u3d_point.hpp:155
double getZ() const
Definition: u3d_point.hpp:141
double getY() const
Definition: u3d_point.hpp:135
U3dPoint & operator=(const U3dPoint &p)
Definition: u3d_point.hpp:120
Definition: u3d_point.hpp:16
bool operator!=(const U3dPoint &) const
void setZ(double z)
Definition: u3d_point.hpp:167
U3dPoint()
Definition: u3d_point.hpp:95
double getX() const
Definition: u3d_point.hpp:129
bool operator==(const U3dPoint &) const