| TerraLib 4.1

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

Functions
Touch test
Topological operators

## Functions

TL_DLL bool | TeTouches (const TeCoord2D &c, const TeLine2D &l)
| Check if coordinate and line touches.
TL_DLL bool | TeTouches (const TeCoord2D &c, const TePolygon &pol)
| Check if coordinate and polygon touches.
TL_DLL bool | TeTouches (const TePoint &p, const TeLine2D &l)
| Check if point and object touches.
TL_DLL bool | TeTouches (const TePoint &p, const TePolygon &pol)
| Check if point and object touches.
TL_DLL bool | TeTouches (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if line and line touches.
TL_DLL bool | TeTouches (const TeLine2D &l, const TePolygon &pol)
| Check if line and polygon.
TL_DLL bool | TeTouches (const TePolygon &redPol, const TePolygon &bluePol)
| Check if polygons touches.
TL_DLL bool | TeTouches (const TeBox &bx1, const TeBox &bx2)
| Check if boxes touches.
TL_DLL bool | TeTouches (const TeCell &c1, const TeCell &c2)
| Check if cells touches.
TL_DLL bool | TeTouches (const TeLine2D &line, const TeCell &cell)
| Check if cell and line touches.
TL_DLL bool | TeTouches (const TeCell &c1, const TePolygon &poly)
| Check if cell and polygon touches.
TL_DLL bool | TeTouches (const TePoint &point, const TeCell &c1)
| Check if cell and point touches.

## Detailed Description

Check if two objects touches.

     Applies to A/A, L/L, L/A, P/A, P/L.
     TeTouches(x, y) => (I(x) inter I(y) = false) ^ (x inter y = true)
    				    => (I(x) inter I(y) = false) ^ ((B(x) inter I(y) = true) v (I(x) inter B(y) = true) v (B(x) inter B(y) = true))

## Function Documentation

TL_DLL bool TeTouches | ( | const TeCoord2D & | c,
|  | const TeLine2D & | l
| ) |  |

Check if coordinate and line touches.

TL_DLL bool TeTouches | ( | const TePoint & | point,
|  | const TeCell & | c1
| ) |  |

Check if cell and point touches.

TL_DLL bool TeTouches | ( | const TeCell & | c1,
|  | const TePolygon & | poly
| ) |  |

Check if cell and polygon touches.

TL_DLL bool TeTouches | ( | const TeLine2D & | line,
|  | const TeCell & | cell
| ) |  |

Check if cell and line touches.

TL_DLL bool TeTouches | ( | const TeCell & | c1,
|  | const TeCell & | c2
| ) |  |

Check if cells touches.

TL_DLL bool TeTouches | ( | const TeBox & | bx1,
|  | const TeBox & | bx2
| ) |  |

Check if boxes touches.

TL_DLL bool TeTouches | ( | const TePolygon & | redPol,
|  | const TePolygon & | bluePol
| ) |  |

Check if polygons touches.

TL_DLL bool TeTouches | ( | const TeLine2D & | l,
|  | const TePolygon & | pol
| ) |  |

Check if line and polygon.

TL_DLL bool TeTouches | ( | const TeLine2D & | redLine,
|  | const TeLine2D & | blueLine
| ) |  |

Check if line and line touches.

TL_DLL bool TeTouches | ( | const TePoint & | p,
|  | const TePolygon & | pol
| ) |  |

Check if point and object touches.

TL_DLL bool TeTouches | ( | const TePoint & | p,
|  | const TeLine2D & | l
| ) |  |

Check if point and object touches.

TL_DLL bool TeTouches | ( | const TeCoord2D & | c,
|  | const TePolygon & | pol
| ) |  |

Check if coordinate and polygon touches.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines