26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYFUNCTIONS_H 27 #define __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYFUNCTIONS_H 62 static bool IsEqual(
double x1,
double y1,
double x2,
double y2);
232 if (distance1 < distance2)
259 if (distance1 < distance2)
270 #endif // __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYFUNCTIONS_H std::vector< te::gm::Geometry * > GeometryVector
static double CalculateSquaredDistance(const te::gm::Coord2D &c1, const te::gm::Coord2D &c2)
Calculates the squared distance between c1 and c2, that is, the distance calculation without the fina...
A point with x and y coordinate values.
TESAEXPORT double CalculateDistance(te::gm::Geometry *geom, te::gm::Coord2D &coord)
Function used to calculate the distance from a coord to the center of a geometry. ...
An utility struct for representing 2D coordinates.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
This local struct is used sorts a vector of points by distance.
A point with x and y coordinate values.
A class that represents a two dimensional K-d Tree (2-d Tree).
te::gm::Point m_reference
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
PointDistanceOrderFunctor(const te::gm::Point &reference)
CoordDistanceOrderFunctor(const te::gm::Coord2D &reference)
This local struct is used sorts a vector of coordinates by distance.
te::gm::Coord2D m_reference
Configuration flags for the Vector Geometry Model of TerraLib.
bool operator()(const te::gm::Coord2D &c1, const te::gm::Coord2D &c2) const
TEMNTEXPORT double PerpendicularDistance(te::gm::Coord2D &first, te::gm::Coord2D &last, te::gm::Coord2D &pin, te::gm::Coord2D &pinter)
bool operator()(const te::gm::Point &p1, const te::gm::Point &p2) const