| PolygonArea.hpp | | PolygonArea.hpp | |
| | | | |
| skipping to change at line 145 | | skipping to change at line 145 | |
| **********************************************************************
/ | | **********************************************************************
/ | |
| unsigned Compute(bool reverse, bool sign, | | unsigned Compute(bool reverse, bool sign, | |
| real& perimeter, real& area) const throw(); | | real& perimeter, real& area) const throw(); | |
| | | | |
| /** | | /** | |
| * Return the results assuming a tentative final test point is added; | | * Return the results assuming a tentative final test point is added; | |
| * however, the data for the test point is not saved. This lets you re
port | | * however, the data for the test point is not saved. This lets you re
port | |
| * a running result for the perimeter and area as the user moves the mo
use | | * a running result for the perimeter and area as the user moves the mo
use | |
| * cursor. Ordinary floating point arithmetic is used to accumulate th
e | | * cursor. Ordinary floating point arithmetic is used to accumulate th
e | |
| * data for the test point; thus the area and perimeter returned are le
ss | | * data for the test point; thus the area and perimeter returned are le
ss | |
|
| * accurate than if AddPoint and Compute are used. | | * accurate than if PolygonArea::AddPoint and PolygonArea::Compute are | |
| | | * used. | |
| * | | * | |
| * @param[in] lat the latitude of the test point (degrees). | | * @param[in] lat the latitude of the test point (degrees). | |
| * @param[in] lon the longitude of the test point (degrees). | | * @param[in] lon the longitude of the test point (degrees). | |
| * @param[in] reverse if true then clockwise (instead of counter-clockw
ise) | | * @param[in] reverse if true then clockwise (instead of counter-clockw
ise) | |
| * traversal counts as a positive area. | | * traversal counts as a positive area. | |
| * @param[in] sign if true then return a signed result for the area if | | * @param[in] sign if true then return a signed result for the area if | |
| * the polygon is traversed in the "wrong" direction instead of retur
ning | | * the polygon is traversed in the "wrong" direction instead of retur
ning | |
| * the area for the rest of the earth. | | * the area for the rest of the earth. | |
| * @param[out] perimeter the approximate perimeter of the polygon or le
ngth | | * @param[out] perimeter the approximate perimeter of the polygon or le
ngth | |
| * of the polyline (meters). | | * of the polyline (meters). | |
| | | | |
| skipping to change at line 173 | | skipping to change at line 174 | |
| **********************************************************************
/ | | **********************************************************************
/ | |
| unsigned TestPoint(real lat, real lon, bool reverse, bool sign, | | unsigned TestPoint(real lat, real lon, bool reverse, bool sign, | |
| real& perimeter, real& area) const throw(); | | real& perimeter, real& area) const throw(); | |
| | | | |
| /** | | /** | |
| * Return the results assuming a tentative final test point is added vi
a an | | * Return the results assuming a tentative final test point is added vi
a an | |
| * azimuth and distance; however, the data for the test point is not sa
ved. | | * azimuth and distance; however, the data for the test point is not sa
ved. | |
| * This lets you report a running result for the perimeter and area as
the | | * This lets you report a running result for the perimeter and area as
the | |
| * user moves the mouse cursor. Ordinary floating point arithmetic is
used | | * user moves the mouse cursor. Ordinary floating point arithmetic is
used | |
| * to accumulate the data for the test point; thus the area and perimet
er | | * to accumulate the data for the test point; thus the area and perimet
er | |
|
| * returned are less accurate than if AddPoint and Compute are used. | | * returned are less accurate than if PolygonArea::AddEdge and | |
| | | * PolygonArea::Compute are used. | |
| * | | * | |
| * @param[in] azi azimuth at current point (degrees). | | * @param[in] azi azimuth at current point (degrees). | |
| * @param[in] s distance from current point to final test point (meters
). | | * @param[in] s distance from current point to final test point (meters
). | |
| * @param[in] reverse if true then clockwise (instead of counter-clockw
ise) | | * @param[in] reverse if true then clockwise (instead of counter-clockw
ise) | |
| * traversal counts as a positive area. | | * traversal counts as a positive area. | |
| * @param[in] sign if true then return a signed result for the area if | | * @param[in] sign if true then return a signed result for the area if | |
| * the polygon is traversed in the "wrong" direction instead of retur
ning | | * the polygon is traversed in the "wrong" direction instead of retur
ning | |
| * the area for the rest of the earth. | | * the area for the rest of the earth. | |
| * @param[out] perimeter the approximate perimeter of the polygon or le
ngth | | * @param[out] perimeter the approximate perimeter of the polygon or le
ngth | |
| * of the polyline (meters). | | * of the polyline (meters). | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 4 lines changed or added | |
|