| TerraLib 4.1

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

Functions
Overlaps test
Topological operators

## Functions

TL_DLL bool | TeOverlaps (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if red red overlaps blue line.
TL_DLL bool | TeOverlaps (const TePolygon &redPol, const TePolygon &bluePol)
| Check if red polygon overlaps blue polygon.
TL_DLL bool | TeOverlaps (const TeCell &cell1, const TeCell &cell2)
| Check if cell1 overlaps cell2.
TL_DLL bool | TeOverlaps (const TeCell &cell, const TePolygon &poly)
| Check if cell overlaps polygon.

## Detailed Description

Check if one object overlaps another object.

       TeOverlaps(x, y) => (dim(I(x)) = dim(I(y)) = dim(I(x) inter I(y))) ^ (x inter y != x) ^ (x inter y != y)
       Case 1: (x = TePolygon  and y = TePolygon)
               => (I(x) inter I(y) = true) ^ (I(x) inter E(y) = true) ^ (E(x) inter I(y) = true)
       Case 2: x = TeLine2D and y = TeLine2D
               => (dim(I(x) inter I(y)) = 1) ^ (I(x) inter E(y) = true) ^ (E(x) inter I(y) = true)

## Function Documentation

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

Check if red red overlaps blue line.

TL_DLL bool TeOverlaps | ( | const TeCell & | cell,
|  | const TePolygon & | poly
| ) |  |

Check if cell overlaps polygon.

TL_DLL bool TeOverlaps | ( | const TeCell & | cell1,
|  | const TeCell & | cell2
| ) |  |

Check if cell1 overlaps cell2.

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

Check if red polygon overlaps blue polygon.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines