QGIS API Documentation  2.0.1-Dufour
Point3D Class Reference

Point3D is a class to represent a three dimensional point. More...

`#include <Point3D.h>`

Public Member Functions

Point3D ()
Point3D (double x, double y, double z)
Constructor with the x-, y- and z-coordinate as arguments.
Point3D (const Point3D &p)
~Point3D ()
Point3Doperator= (const Point3D &p)
bool operator== (const Point3D &p)
bool operator!= (const Point3D &p)
double dist3D (Point3D *p) const
calculates the three-dimensional distance to another point
double getX () const
Returns the x-coordinate of the point.
double getY () const
Returns the y-coordinate of the point.
double getZ () const
Returns the z-coordinate of the point.
void setX (double x)
Sets the x-coordinate of the point.
void setY (double y)
Sets the y-coordinate of the point.
void setZ (double z)
Sets the z-coordinate of the point.

double mX
X-coordinate.
double mY
Y-coordinate.
double mZ
Z-coordinate.

Detailed Description

Point3D is a class to represent a three dimensional point.

Definition at line 23 of file Point3D.h.

Constructor & Destructor Documentation

 Point3D::Point3D ( )
inline

Definition at line 57 of file Point3D.h.

 Point3D::Point3D ( double x, double y, double z )
inline

Constructor with the x-, y- and z-coordinate as arguments.

Definition at line 62 of file Point3D.h.

 Point3D::Point3D ( const Point3D & p )
inline

Definition at line 67 of file Point3D.h.

 Point3D::~Point3D ( )
inline

Definition at line 72 of file Point3D.h.

Member Function Documentation

 double Point3D::dist3D ( Point3D * p ) const

calculates the three-dimensional distance to another point

 double Point3D::getX ( ) const
inline

Returns the x-coordinate of the point.

Definition at line 77 of file Point3D.h.

References mX.

 double Point3D::getY ( ) const
inline

Returns the y-coordinate of the point.

Definition at line 82 of file Point3D.h.

References mY.

 double Point3D::getZ ( ) const
inline

Returns the z-coordinate of the point.

Definition at line 87 of file Point3D.h.

References mZ.

Referenced by QgsTINInterpolator::interpolatePoint().

 bool Point3D::operator!= ( const Point3D & p )
 Point3D& Point3D::operator= ( const Point3D & p )
 bool Point3D::operator== ( const Point3D & p )
 void Point3D::setX ( double x )
inline

Sets the x-coordinate of the point.

Definition at line 92 of file Point3D.h.

References mX.

 void Point3D::setY ( double y )
inline

Sets the y-coordinate of the point.

Definition at line 97 of file Point3D.h.

References mY.

 void Point3D::setZ ( double z )
inline

Sets the z-coordinate of the point.

Definition at line 102 of file Point3D.h.

References mZ.

Member Data Documentation

 double Point3D::mX
protected

X-coordinate.

Definition at line 27 of file Point3D.h.

Referenced by getX(), and setX().

 double Point3D::mY
protected

Y-coordinate.

Definition at line 29 of file Point3D.h.

Referenced by getY(), and setY().

 double Point3D::mZ
protected

Z-coordinate.

Definition at line 31 of file Point3D.h.

Referenced by getZ(), and setZ().

The documentation for this class was generated from the following file:
• /tmp/buildd/qgis-2.0.1/src/analysis/interpolation/Point3D.h