| TerraLib 4.1

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

Functions
Equals test
Topological operators

## Functions

template<class T1 , class T2 >
bool | TeEquals (const T1 &, const T2 &)
| If a specialized function is not used, returns false.
template<>
TL_DLL bool | TeEquals (const TeCoord2D &c1, const TeCoord2D &c2)
| Check if coordinate 1 and coordinate 2 are equal.
template<>
TL_DLL bool | TeEquals (const TePoint &p1, const TePoint &p2)
| Check if point 1 and point 2 are equal.
template<>
TL_DLL bool | TeEquals (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if lineRed and lineBlue are equal.
template<>
TL_DLL bool | TeEquals (const TePolygon &redPol, const TePolygon &bluePol)
| Check if polygon red and polygon blue are equal.
template<>
TL_DLL bool | TeEquals (const TePolygonSet &ps1, const TePolygonSet &ps2)
| Check if polygonset1 and polygonset1 are equal.
template<>
TL_DLL bool | TeEquals (const TeBox &bx1, const TeBox &bx2)
| Check if box 1 and box 2 are equal.
template<>
TL_DLL bool | TeEquals (const TeCell &cell1, const TeCell &cell2)
| Check if cell 1 and cell 2 are equal.

## Detailed Description

Check if one object is equal another object.

     Applies to: P/P, L/L and A/A.
     TeEquals(x, y) => (x inter y = x) ^ (y inter x = y)
                       (B(x) inter I(y) = false) ^ (B(x) inter E(y) = false)

## Function Documentation

template<class T1 , class T2 >

bool TeEquals | ( | const T1 & | ,
|  | const T2 & |
| ) |  | `[inline]`

If a specialized function is not used, returns false.

template<>

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

Check if cell 1 and cell 2 are equal.

template<>

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

Check if box 1 and box 2 are equal.

template<>

TL_DLL bool TeEquals | ( | const TePolygonSet & | ps1,
|  | const TePolygonSet & | ps2
| ) |  |

Check if polygonset1 and polygonset1 are equal.

template<>

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

Check if polygon red and polygon blue are equal.

template<>

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

Check if lineRed and lineBlue are equal.

template<>

TL_DLL bool TeEquals | ( | const TePoint & | p1,
|  | const TePoint & | p2
| ) |  |

Check if point 1 and point 2 are equal.

template<>

TL_DLL bool TeEquals | ( | const TeCoord2D & | c1,
|  | const TeCoord2D & | c2
| ) |  |

Check if coordinate 1 and coordinate 2 are equal.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines