| TerraLib 4.1

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

Functions
Intersects test
Topological operators

## Functions

template<class T1 , class T2 >
bool | TeIntersects (const T1 &o1, const T2 &o2)
| If a specialized function is not used, returns the disjoint negation.
template<>
TL_DLL bool | TeIntersects (const TeCoord2D &c, const TeBox &b)
| Check if coordinate and box intersects.
template<>
TL_DLL bool | TeIntersects (const TePoint &p, const TeBox &b)
| Check if point and box intersects.
template<>
TL_DLL bool | TeIntersects (const TeBox &bx1, const TeBox &bx2)
| Check if boxes intersects.

## Detailed Description

Check if one object intersects another object.

      Applies to all geometries.
      TeIntersects(x, y) => !TeDisjoint(x, y)
                         => (I(x) inter I(y) = true) v (I(x) inter B(y) = true) v (B(x) inter I(y) = true) v (B(x) inter B(y) = true)

## Function Documentation

template<class T1 , class T2 >

bool TeIntersects | ( | const T1 & | o1,
|  | const T2 & | o2
| ) |  |

If a specialized function is not used, returns the disjoint negation.

template<>

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

Check if boxes intersects.

template<>

TL_DLL bool TeIntersects | ( | const TePoint & | p,
|  | const TeBox & | b
| ) |  |

Check if point and box intersects.

template<>

TL_DLL bool TeIntersects | ( | const TeCoord2D & | c,
|  | const TeBox & | b
| ) |  |

Check if coordinate and box intersects.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines