D:/usuarios/rodrigof/svn/tdk/src/peer/components/core/TdkTecGAlg.h File Reference

#include "TeGeometry.h"

Functions

double TeTecDistance (double x0, double y0, double x1, double y1)
 Computes the distance between two given points.
void TeDistanceAndAzimuth (double x0, double y0, double x1, double y1, double *d, double *a)
 Computes the distance and the azimuth between two given points.
Geometry Algorithms
bool TeTecIsDisjoint (TeLine2D &polyline, double xmin, double ymin, double xmax, double ymax)
 Check if the given geometry object is disjoint from the given box.
bool TeTecIsDisjoint (TeLinearRing &ring, double xmin, double ymin, double xmax, double ymax)
bool TeTecIsDisjoint (TePolygon &pol, double xmin, double ymin, double xmax, double ymax)
bool TeTecIsDisjoint (double xc, double yc, double r, double xmin, double ymin, double xmax, double ymax)
bool TeTecIsDisjoint (TePoint &pt, double xc, double yc, double r)
 Check if the given geometry is disjoint from the given circle.
bool TeTecIsDisjoint (TeLine2D &polyline, double xc, double yc, double r)
bool TeTecIsDisjoint (TeLinearRing &ring, double xc, double yc, double r)
bool TeTecIsDisjoint (TePolygon &poly, double xc, double yc, double r)

Function Documentation

void TeDistanceAndAzimuth ( double  x0,
double  y0,
double  x1,
double  y1,
double *  d,
double *  a 
)

Computes the distance and the azimuth between two given points.

Parameters:
x0,y0 coordinates of the first point
y1,y1 coordinates of the second point
Return values:
d computed distance
a computed azimuth in degrees

double TeTecDistance ( double  x0,
double  y0,
double  x1,
double  y1 
) [inline]

Computes the distance between two given points.

Parameters:
x0,y0 coordinates of the first point
y1,y1 coordinates of the second point a computed azimuth in degrees

bool TeTecIsDisjoint ( TePolygon &  poly,
double  xc,
double  yc,
double  r 
)

Actualy this function doesn't work correctely for polygons with holes. There is missing the implementation of the function for checking if the given circle is completely inside the given polygon.

bool TeTecIsDisjoint ( TeLinearRing &  ring,
double  xc,
double  yc,
double  r 
)

bool TeTecIsDisjoint ( TeLine2D &  polyline,
double  xc,
double  yc,
double  r 
)

bool TeTecIsDisjoint ( TePoint &  pt,
double  xc,
double  yc,
double  r 
) [inline]

Check if the given geometry is disjoint from the given circle.

bool TeTecIsDisjoint ( double  xc,
double  yc,
double  r,
double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

bool TeTecIsDisjoint ( TePolygon &  pol,
double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

bool TeTecIsDisjoint ( TeLinearRing &  ring,
double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

bool TeTecIsDisjoint ( TeLine2D &  polyline,
double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

Check if the given geometry object is disjoint from the given box.

As the set of geometries algoritms provided by the Terralib kernel is incomplete and some of them are even wrong, this set of functions were made in order to complement those algoritms.


Generated on Fri Jun 15 16:54:18 2007 for TDK by  doxygen 1.5.2