| TerraLib 4.1

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

Functions
Within test
Topological operators

## Functions

TL_DLL bool | TeWithin (const TeCoord2D &c1, const TeCoord2D &c2)
| Check if coordinate 1 is within coordinate 2.
TL_DLL bool | TeWithin (const TeCoord2D &c, const TeBox &b)
| Check if coordinate is within a box.
TL_DLL bool | TeWithin (const TeCoord2D &c, const TeLine2D &l)
| Check if a cordinate is within a line.
TL_DLL bool | TeWithin (const TeCoord2D &c, const TePolygon &pol)
| Check if a cordinate is within a polygon.
TL_DLL bool | TeWithin (const TePoint &p1, const TePoint &p2)
| Check if point 1 is within point 2.
TL_DLL bool | TeWithin (const TePoint &p, const TeLine2D &l)
| Check if point is within object.
TL_DLL bool | TeWithin (const TePoint &p, const TePolygon &pol)
| Check if point is within object.
TL_DLL bool | TeWithin (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if red line is within blue line.
TL_DLL bool | TeWithin (const TeLine2D &l, const TePolygon &pol)
| Check if line is within polygon.
TL_DLL bool | TeWithin (const TePolygon &redPol, const TePolygon &bluePol)
| Check if red polygon is within blue polygon.
TL_DLL bool | TeWithin (const TeBox &bx1, const TeBox &bx2)
| Check if box1 is within box2.
TL_DLL bool | TeWithin (const TeCell &cell1, const TeCell &cell2)
| Check if cell1 is within cell2.
TL_DLL bool | TeWithin (const TeLine2D &line, const TeCell &cell)
| Check if line is within cell.
TL_DLL bool | TeWithin (const TeCell &cell, const TePolygon &poly)
| Check if cell is within polygon.
TL_DLL bool | TeWithin (const TePoint &point, const TeCell &cell)
| Check if point is within cell.

## Detailed Description

Check if one object is within another object.

       TeWithin(x, y) => (x inter y = x) ^ (I(x) inter I(y) = true)
       Case 1: P/P, P/L and P/A
               => (I(x) inter I(y) = true)
       Case 2: L/L and A/A
               => (I(x) inter I(y) = true) ^ (I(x) inter E(y) = false) ^ (B(x) inter E(y) = false) ^ (B(x) inter B(y) = false)
       Case 3: L/A
               => (I(x) inter I(y) = true) ^ (I(x) inter E(y) = false) ^ (B(x) inter E(y) = false) ^ (B(x) inter B(y) = false) ^ (I(x) inter B(y) = false)

## Function Documentation

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

Check if coordinate 1 is within coordinate 2.

TL_DLL bool TeWithin | ( | const TePoint & | point,
|  | const TeCell & | cell
| ) |  |

Check if point is within cell.

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

Check if cell is within polygon.

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

Check if line is within cell.

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

Check if cell1 is within cell2.

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

Check if box1 is within box2.

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

Check if red polygon is within blue polygon.

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

Check if line is within polygon.

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

Check if red line is within blue line.

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

Check if point is within object.

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

Check if point is within object.

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

Check if point 1 is within point 2.

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

Check if a cordinate is within a polygon.

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

Check if a cordinate is within a line.

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

Check if coordinate is within a box.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines