13 #include <vlutil/vlConfig.h>
14 #include <vlutil/vlString.h>
15 #include <vlutil/vlUtil.h>
16 #include <matrix/vlVector.h>
43 const double& x = 0.0,
44 const double& y = 0.0,
45 const double& z = 0.0);
62 DtPoint& operator=(
const Dt4dPoint& rhs);
64 const double& operator[](
const int& index)
const;
65 double& operator[](
const int& index);
67 const double& operator[](
const DtPointIndex& index)
const;
68 double& operator[](
const DtPointIndex& index);
73 DtPoint operator*(
const double& rhs)
const;
74 DtPoint& operator*=(
const double& rhs);
76 DtPoint operator/(
const double& rhs)
const;
77 DtPoint& operator/=(
const double& rhs);
93 bool approxEq(
const DtPoint& p,
const double& tolerance)
const;
95 void get(
double& x,
double& y,
double& z)
const;
96 const double& x()
const;
97 const double& y()
const;
98 const double& z()
const;
100 void set(
const double& x,
const double& y,
const double& z);
101 void setX(
const double& x);
102 void setY(
const double& y);
103 void setZ(
const double& z);
106 double distanceTo(
const DtPoint & end)
const;
107 double distanceSquaredTo(
const DtPoint & end)
const;
110 double xyDistanceTo(
const DtPoint & end)
const;
111 double xyDistanceSquaredTo(
const DtPoint & end)
const;
114 double xyDistanceToLine(
const DtPoint& pointA,
const DtPoint& pointB)
const;
115 double xyDistanceToLineSquared(
const DtPoint& pointA,
const DtPoint& pointB)
const;
123 double magnitudeSquared()
const;
131 bool readFrom(FILE* fp);
132 bool writeTo(FILE* fp);
134 void dump(
const char* label)
const;
174 inline void DtPoint::set(
const double& x,
const double& y,
const double& z)
const double & x() const
Definition: point.h:188
const double & operator[](const int &index) const
Definition: point.h:154
void get(double &x, double &y, double &z) const
Definition: point.h:181
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
DtPoint DtVertex
Definition: point.h:24
#define DT_DLL_geometry
Definition: geometryDefines.h:23
DtPointIndex
Definition: point.h:47
virtual ~DtPoint()
Definition: point.h:150
void setY(const double &y)
Definition: point.h:203
void set(const double &x, const double &y, const double &z)
Definition: point.h:174
const double & y() const
Definition: point.h:198
void setZ(const double &z)
Definition: point.h:213
double myRep[3]
Definition: point.h:137
void setX(const double &x)
Definition: point.h:193
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
const double & z() const
Definition: point.h:208
DT_DLL_features std::istream & operator>>(std::istream &, DtQuery &)
iostream input iteration
DtPoint(const double &x=0.0, const double &y=0.0, const double &z=0.0)
Definition: point.h:143