UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
U2dWPoint Class Reference

#include <u2d_wpoint.hpp>

Inheritance diagram for U2dWPoint:
U2dPoint

Public Member Functions

 U2dWPoint ()
 
 U2dWPoint (double x, double z)
 
 U2dWPoint (double x, double z, double W)
 
U2dWPointoperator= (const U2dWPoint &p_)
 
double getW () const
 
void setW (double W)
 
- Public Member Functions inherited from U2dPoint
 U2dPoint ()
 
 U2dPoint (const U2dPoint &p)
 
 U2dPoint (double x, double z)
 
U2dPointoperator= (const U2dPoint &p)
 
bool operator== (const U2dPoint &) const
 
bool operator!= (const U2dPoint &) const
 
U2dPoint operator+ (U2dPoint)
 
U2dPoint operator- (U2dPoint)
 
double getX () const
 
double getZ () const
 
void setXZ (double x, double z)
 
void setX (double x)
 
void setZ (double z)
 

Protected Attributes

double m_W
 
- Protected Attributes inherited from U2dPoint
double m_X
 
double m_Z
 

Additional Inherited Members

- Static Public Member Functions inherited from U2dPoint
static bool x_asc (const U2dPoint &p1, const U2dPoint &p2)
 
static bool z_asc (const U2dPoint &p1, const U2dPoint &p2)
 
static bool x_desc (const U2dPoint &p1, const U2dPoint &p2)
 
static bool z_desc (const U2dPoint &p1, const U2dPoint &p2)
 
static double pDistance (const U2dPoint &p0, const U2dPoint &p1)
 
static int getNeighbour (const U2dPoint &p, std::vector< U2dPoint * > &p_ar)
 
static int getNeighbour (const U2dPoint &p, std::vector< U2dPoint > &p_ar)
 

Detailed Description

2D point with weight

Constructor & Destructor Documentation

U2dWPoint::U2dWPoint ( )
inline

Zero point, (0,0), W=0

U2dWPoint::U2dWPoint ( double  x,
double  z 
)
inline

Point with provided coordinates and zero weight

U2dWPoint::U2dWPoint ( double  x,
double  z,
double  W 
)
inline

Point with provided coordinates and weight

Member Function Documentation

double U2dWPoint::getW ( ) const
inline

Get point weight

void U2dWPoint::setW ( double  W)
inline

Set point weight

Member Data Documentation

double U2dWPoint::m_W
protected

Weight


The documentation for this class was generated from the following file: