| TerraLib 4.1

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

Functions
Crosses test
Topological operators

## Functions

TL_DLL bool | TeCrosses (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if red line crosses blue line.
TL_DLL bool | TeCrosses (const TeLine2D &l, const TePolygon &pol)
| Check if line crosses polygon.
TL_DLL bool | TeCrosses (const TeLine2D &l, const TeCell &cell)
| Check if line and cell crosses.

## Detailed Description

Check if one object crosses another object.

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

## Function Documentation

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

Check if red line crosses blue line.

TL_DLL bool TeCrosses | ( | const TeLine2D & | l,
|  | const TeCell & | cell
| ) |  |

Check if line and cell crosses.

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

Check if line crosses polygon.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines