Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
#include <location.h>
Public Member Functions | |
Location () | |
Location (CrdType d1, CrdType d2, CrdType d3=Location::undefined()) | |
template<typename U > | |
Location (const Location< U > &p) | |
Location (const Location< CrdType > &p) | |
Location (Location< CrdType > &&crd) | |
Location (const std::vector< CrdType > &v) | |
bool | isValid () const |
bool | is0 () const |
bool | is3D () const |
operator std::vector< CrdType > () | |
Ilwis::Location< CrdType > & | operator= (const Ilwis::Location< CrdType > &p2) |
Ilwis::Location< CrdType > & | operator= (const Ilwis::Location< CrdType > &&p2) |
Location< CrdType > & | operator+= (const std::vector< CrdType > &vec) |
Location< CrdType > & | operator-= (const std::vector< CrdType > &vec) |
double | distance (const Location< CrdType > &crd) |
Location< CrdType > & | operator*= (const std::vector< CrdType > &vec) |
Location< CrdType > & | operator*= (CrdType v) |
Location< CrdType > & | operator/= (CrdType v) |
bool | operator== (const Location< CrdType > &pnt) const |
bool | operator!= (const Location< CrdType > &pnt) |
Static Public Member Functions | |
static double | undefined () |
static quint64 | valuetype () |
Public Attributes | |
CrdType | x |
CrdType | y |
CrdType | z |
A point in 2D space. It is a derivative of the Point class. As the base class already offer the x,y components no *further implementation of these is needed. The class mostely implements special operations on 2D points
|
inline |
default constructor
|
inline |
constructs a 2D point from 2 values. The values must not be undefined() else the point remains not valid
d1 | first value |
d2 | second value |
|
inline |
a point is valid if both its x and y have a valid value;
|
inline |
compares the coordinates of 2 points to see if they are not equal. comparision with non valid points always leads to true
pnt,point | to be compared |
|
inline |
operator *= multiplies a point with a factor contained in the vector, shifting it in 2D space. Using undefined() values in the vector may lead to unpredictable results
a | vector with a pair of values |
|
inline |
operator *= multipliesthe x,y values with a single factor , shifting it in 2D space. Using undefined() values may lead to unpredictable results
multiplier |
|
inline |
operator += addes a vector of 2 values to a point shifting it in 2D space. Using undefined() values in the vector may lead to unpredictable results
a | vector with a pair of values |
|
inline |
operator /= divides the coordinates of a point with a fixed value. The value must not be zero. If it is zero nothing happens Using undefined() values may lead to unpredictable results
v |
|
inline |
compares the coordinates of 2 points to see if they are equal. comparision with non valid points always leads to false
pnt,point | to be compared |