| TerraLib 4.1

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

Functions
Intersection Operators
Geometry algorithms

## Functions

TL_DLL bool | TeIntersection (const TeBox &bx1, const TeBox &bx2, TeBox &bout)
| Performs the intersection between box b1 and b2, returning the resulting box bout.
TL_DLL TeCoordPairVect | TeGetIntersections (const TePolygon &poly, const double &y)
| Returns the segments that intersept the poly polygon in the line y.

## Detailed Description

Functions that calculate the intersection among objects or do intersection test.

## Function Documentation

TL_DLL TeCoordPairVect TeGetIntersections | ( | const TePolygon & | poly,
|  | const double & | y
| ) |  |

Returns the segments that intersept the poly polygon in the line y.

Parameters:

  poly | A polygon.
  y | The ordinate that cuts the polygons edges.

TL_DLL bool TeIntersection | ( | const TeBox & | bx1,
|  | const TeBox & | bx2,
|  | TeBox & | bout
| ) |  |

Performs the intersection between box b1 and b2, returning the resulting box bout.

Parameters:

  bx1 | The first box to do the intersection.
  bx2 | The second box to do the intersection.
  bout | The box formed by the intersection of bx1 and bx2.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines