![]() |
TerraLib 4.1
|
Functions | |
| TL_DLL bool | TeGetCenter (TePoint p1, TePoint p2, TePoint p3, TePoint ¢er) |
| Given three points of a circunference, returns its center point. | |
| TL_DLL double | TeGetRadius (TePoint &p1, TePoint &p2, TePoint &p3) |
| Given three points of a circunference, returns the radius. | |
| TL_DLL bool | TeGenerateArc (TePoint &p1, TePoint &p2, TePoint &p3, TeLine2D &arcOut, const short &NPoints) |
| Given three points returns a smooth arc as a TeLine2D that contains a given total number of points. | |
| TL_DLL bool | TeGenerateCircle (const TePoint ¢er, const double &radius, TeLine2D &circle, const short &NPoints) |
| Given a center point and a radius, returns the circle as a TeLine2D interpolated by a given number of points. | |
| TL_DLL bool | TeLineSimplify (TeLine2D &line, double snap, double maxdist) |
| Performs a line simplication. | |
| TL_DLL bool | TeAdjustSegment (TeCoord2D P0, TeCoord2D P1, double d0, TeCoord2D &P0out, TeCoord2D &P1out) |
| Adjust Segment to specific distance. | |
| TL_DLL bool | TeFindCentroid (const TeLine2D &line, TeCoord2D &p) |
| Get middle line Method like find Centroid but this method calculate the correct middle point. | |
| TL_DLL bool TeAdjustSegment | ( | TeCoord2D | P0, |
| TeCoord2D | P1, | ||
| double | d0, | ||
| TeCoord2D & | P0out, | ||
| TeCoord2D & | P1out | ||
| ) |
Adjust Segment to specific distance.
| P0 | first coordinate |
| P1 | second coordinate |
| d0 | distance value to adjust |
| P0out | first coordinate adjusted |
| P1out | second coordinate adjusted |
Get middle line Method like find Centroid but this method calculate the correct middle point.
| line | The Line to calculate the middle point |
| p | middle point |
| TL_DLL bool TeGenerateArc | ( | TePoint & | p1, |
| TePoint & | p2, | ||
| TePoint & | p3, | ||
| TeLine2D & | arcOut, | ||
| const short & | NPoints | ||
| ) |
Given three points returns a smooth arc as a TeLine2D that contains a given total number of points.
| p1 | First point. |
| p2 | Second point. |
| p3 | Third point. |
| arcOut | The return arc. |
| NPoints | Number of arc points. |
This algorithm is adapted from http://mathforum.org/dr.math/
| TL_DLL bool TeGenerateCircle | ( | const TePoint & | center, |
| const double & | radius, | ||
| TeLine2D & | circle, | ||
| const short & | NPoints | ||
| ) |
Given a center point and a radius, returns the circle as a TeLine2D interpolated by a given number of points.
| center | Center point of the circle. |
| radius | radius of the circle. |
| circle | The return circle |
| NPoints | Number of circle points. |
Given three points of a circunference, returns its center point.
| p1 | First point. |
| p2 | Second point. |
| p3 | Third point. |
| center | Circunference center. This algorithm is adapted from http://www.delphiforfun.org/Programs/Math_Topics/circle_from_3_points.htmbook. |
Given three points of a circunference, returns the radius.
| p1 | First point. |
| p2 | Second point. |
| p3 | Third point. This algorithm is adapted from http://www.delphiforfun.org/Programs/Math_Topics/circle_from_3_points.htmbook. |
| TL_DLL bool TeLineSimplify | ( | TeLine2D & | line, |
| double | snap, | ||
| double | maxdist | ||
| ) |
Performs a line simplication.
| line | The line to be simplified |
| snap | Simplification threshold |
| maxdist | The maximum distance between intermediary segments |