| TerraLib 4.1

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

Classes | Functions
Utilities functions.
Geometry algorithms

## Classes

class | TeGeometryAlgorithmsPrecision
| This class implements the Epsilon-tweaking used in calculus. More...

## Functions

TL_DLL double | TeGetPrecision (TeProjection *proj)
| Given a projection "proj" returns a tolerance value in the same unit of projection to be used in geometric operations.
void | TeRemoveDuplicatedCoordinates (TeLine2D &l)
| Removes the duplicate coordinates of a line.
void | TeRemoveDuplicatedCoordinates (TePolygon &p)
| Removes the duplicate coordinates of a polygon.
void | TeReverseLine (TeLine2D &lin)
| Reverses the orientation of a line.
TL_DLL bool | TeIsConvex (const TeLinearRing &ring)
| Verifies if a simple polygon defined as a linear ring is convex or not.
TL_DLL short | TeOrientation (const TeLinearRing &r)
| Returns the orientation of the ring (CLOCKWISE or COUNTERCLOCKWISE);.

## Function Documentation

TL_DLL double TeGetPrecision | ( | TeProjection * | proj | ) |

Given a projection "proj" returns a tolerance value in the same unit of projection to be used in geometric operations.

TL_DLL bool TeIsConvex | ( | const TeLinearRing & | ring | ) |

Verifies if a simple polygon defined as a linear ring is convex or not.

Parameters:

  ring | The polygon to test convexity.

TL_DLL short TeOrientation | ( | const TeLinearRing & | r | ) |

Returns the orientation of the ring (CLOCKWISE or COUNTERCLOCKWISE);.

Parameters:

  r | The ring to be checked.

void TeRemoveDuplicatedCoordinates | ( | TePolygon & | p | ) | `[inline]`

Removes the duplicate coordinates of a polygon.

void TeRemoveDuplicatedCoordinates | ( | TeLine2D & | l | ) | `[inline]`

Removes the duplicate coordinates of a line.

void TeReverseLine | ( | TeLine2D & | lin | ) | `[inline]`

Reverses the orientation of a line.

Parameters:

  lin | The line to be reversed.

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines