QGIS API Documentation  2.99.0-Master (5169e0d)
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. More...

Point3D (const Point3D &p)

double dist3D (Point3D *p) const
Calculates the three-dimensional distance to another point. More...

double getX () const
Returns the x-coordinate of the point. More...

double getY () const
Returns the y-coordinate of the point. More...

double getZ () const
Returns the z-coordinate of the point. More...

bool operator!= (const Point3D &p) const

bool operator== (const Point3D &p) const

void setX (double x)
Sets the x-coordinate of the point. More...

void setY (double y)
Sets the y-coordinate of the point. More...

void setZ (double z)
Sets the z-coordinate of the point. More...

## Protected Attributes

double mX
X-coordinate. More...

double mY
Y-coordinate. More...

double mZ
Z-coordinate. More...

## Detailed Description

Point3D is a class to represent a three dimensional point.

Definition at line 25 of file Point3D.h.

## ◆ Point3D() [1/3]

 Point3D::Point3D ( )
inline

Definition at line 57 of file Point3D.h.

## ◆ Point3D() [2/3]

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

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

Definition at line 65 of file Point3D.h.

## ◆ Point3D() [3/3]

 Point3D::Point3D ( const Point3D & p )
inline

Definition at line 73 of file Point3D.h.

## ◆ dist3D()

 double Point3D::dist3D ( Point3D * p ) const

Calculates the three-dimensional distance to another point.

Definition at line 30 of file Point3D.cc.

## ◆ getX()

 double Point3D::getX ( ) const
inline

Returns the x-coordinate of the point.

Definition at line 78 of file Point3D.h.

## ◆ getY()

 double Point3D::getY ( ) const
inline

Returns the y-coordinate of the point.

Definition at line 83 of file Point3D.h.

## ◆ getZ()

 double Point3D::getZ ( ) const
inline

Returns the z-coordinate of the point.

Definition at line 88 of file Point3D.h.

## ◆ operator!=()

 bool Point3D::operator!= ( const Point3D & p ) const

Definition at line 25 of file Point3D.cc.

## ◆ operator==()

 bool Point3D::operator== ( const Point3D & p ) const

Definition at line 20 of file Point3D.cc.

## ◆ setX()

 void Point3D::setX ( double x )
inline

Sets the x-coordinate of the point.

Definition at line 93 of file Point3D.h.

## ◆ setY()

 void Point3D::setY ( double y )
inline

Sets the y-coordinate of the point.

Definition at line 98 of file Point3D.h.

## ◆ setZ()

 void Point3D::setZ ( double z )
inline

Sets the z-coordinate of the point.

Definition at line 103 of file Point3D.h.

## ◆ mX

 double Point3D::mX
protected

X-coordinate.

Definition at line 29 of file Point3D.h.

## ◆ mY

 double Point3D::mY
protected

Y-coordinate.

Definition at line 31 of file Point3D.h.

## ◆ mZ

 double Point3D::mZ
protected

Z-coordinate.

Definition at line 33 of file Point3D.h.

The documentation for this class was generated from the following files:
• /tmp/buildd/qgis-2.99.0+git20170426+5169e0d+99unstable/src/analysis/interpolation/Point3D.h
• /tmp/buildd/qgis-2.99.0+git20170426+5169e0d+99unstable/src/analysis/interpolation/Point3D.cc