Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | List of all members
Ilwis::Coordinate Class Reference
Inheritance diagram for Ilwis::Coordinate:
Ilwis::ControlPoint Ilwis::LatLon

Public Member Functions

 Coordinate (double px, double py, double pz=rUNDEF)
 
 Coordinate (const geos::geom::Coordinate &crd)
 
 Coordinate (const Ilwis::Coordinate &crd)
 
 Coordinate (const std::vector< double > &v)
 
double undefined () const
 
quint64 valuetype () const
 
Coordinateoperator= (const geos::geom::Coordinate &)
 
bool isValid () const
 
bool is0 () const
 
bool is3D () const
 
 operator std::vector< double > ()
 
Ilwis::Coordinateoperator= (const Ilwis::Coordinate &p2)
 
Ilwis::Coordinateoperator= (const Ilwis::Coordinate &&p2)
 
Coordinateoperator+= (const std::vector< double > &vec)
 
Coordinateoperator-= (const std::vector< double > &vec)
 
double distance (const Coordinate &crd)
 
Ilwis::Coordinateoperator*= (const std::vector< double > &vec)
 
Ilwis::Coordinateoperator*= (double v)
 
Ilwis::Coordinateoperator/= (double v)
 
bool operator== (const Ilwis::Coordinate &pnt) const
 
bool operator== (const geos::geom::Coordinate &pnt) const
 
bool operator!= (const Ilwis::Coordinate &pnt)
 

Member Function Documentation

bool Ilwis::Coordinate::isValid ( ) const

a point is valid if both its x and y have a valid value;

Returns
bool Ilwis::Coordinate::operator!= ( const Ilwis::Coordinate pnt)

compares the coordinates of 2 points to see if they are not equal. comparision with non valid points always leads to true

Parameters
pnt,pointto be compared
Returns
true if the points are not at the same Coordinate.
Ilwis::Coordinate & Ilwis::Coordinate::operator*= ( const std::vector< double > &  vec)

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

Parameters
avector with a pair of values
Returns
a reference to a shifted 2D point
Ilwis::Coordinate & Ilwis::Coordinate::operator*= ( double  v)

operator *= multipliesthe x,y values with a single factor , shifting it in 2D space. Using undefined() values may lead to unpredictable results

Parameters
multiplier
Returns
a reference to a shifted 2D point
Coordinate & Ilwis::Coordinate::operator+= ( const std::vector< double > &  vec)

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

Parameters
avector with a pair of values
Returns
a reference to a shifted 2D point
Ilwis::Coordinate & Ilwis::Coordinate::operator/= ( double  v)

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

Parameters
v
Returns
bool Ilwis::Coordinate::operator== ( const Ilwis::Coordinate pnt) const

compares the coordinates of 2 points to see if they are equal. comparision with non valid points always leads to false

Parameters
pnt,pointto be compared
Returns
true if the points are at the same Coordinate.

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