| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

Functions
Functions to compute the nearest part of an object to a point.
Geometry algorithms

## Functions

TL_DLL bool | TeNearest (TeCoord2D &pt, TeNodeSet &ns, int &i, const double &tol=0.0)
| Nearest node in set from location pt (i = the node index in the nodeset)
TL_DLL bool | TeNearest (TeCoord2D &pt, TePointSet &ps, int &i, const double &tol=0.0)
| Nearest point in set from location pt (i = the point index in the pointset)
TL_DLL bool | TeNearest (TeCoord2D &pt, TeTextSet &ts, int &i, const double &tol=0.0)
| Nearest text in set from location pt (i = the text index in the textset)
TL_DLL bool | TeNearest (TeCoord2D &pt, TeLineSet &ls, int &i, TeCoord2D &pi, const double &tol=0.0)
TL_DLL bool | TeNearest (TeCoord2D &pt, TeLineSet &ls, int &lindex, TeCoord2D &pout, double &dmin, const double &tol=0.0)
TL_DLL bool | TeNearest (TeCoord2D &pt, TePolygonSet &ps, int &i, const double &tol=0.0)
| Nearest polygon in set from location pt (i = the polygon index in the polygonset).
TL_DLL bool | TeNearestByPoints (TeCoord2D &pt, TeLineSet &ls, int &i, double &dist, const double &tol=0.0)
| Nearest line in set from location pt (i = the line index in lineset) calculated by the vertex of the lines.

## Detailed Description

Auxiliary functions.

## Function Documentation

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TeNodeSet & | ns,
|  | int & | i,
|  | const double & | tol = `0.0`
| ) |  |

Nearest node in set from location pt (i = the node index in the nodeset)

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TePointSet & | ps,
|  | int & | i,
|  | const double & | tol = `0.0`
| ) |  |

Nearest point in set from location pt (i = the point index in the pointset)

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TePolygonSet & | ps,
|  | int & | i,
|  | const double & | tol = `0.0`
| ) |  |

Nearest polygon in set from location pt (i = the polygon index in the polygonset).

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TeLineSet & | ls,
|  | int & | lindex,
|  | TeCoord2D & | pout,
|  | double & | dmin,
|  | const double & | tol = `0.0`
| ) |  |

Nearest line in set from location pt (i = the line index in the lineset and pout = the closest point) The pout point must be inside a line of the line set

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TeLineSet & | ls,
|  | int & | i,
|  | TeCoord2D & | pi,
|  | const double & | tol = `0.0`
| ) |  |

Nearest line in set from location pt (i = the line index in the lineset and pi = the closest point) The pi point can be outside a line of the line set

TL_DLL bool TeNearest | ( | TeCoord2D & | pt,
|  | TeTextSet & | ts,
|  | int & | i,
|  | const double & | tol = `0.0`
| ) |  |

Nearest text in set from location pt (i = the text index in the textset)

TL_DLL bool TeNearestByPoints | ( | TeCoord2D & | pt,
|  | TeLineSet & | ls,
|  | int & | i,
|  | double & | dist,
|  | const double & | tol = `0.0`
| ) |  |

Nearest line in set from location pt (i = the line index in lineset) calculated by the vertex of the lines.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines