28 lines
2.1 KiB
Diff
28 lines
2.1 KiB
Diff
--- commons-geometry-1.0/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/ConvexArea2S.java 2023-10-26 13:25:58.907463690 +0200
|
|
+++ commons-geometry-1.0/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/ConvexArea2S.java 2023-10-26 13:44:54.979184842 +0200
|
|
@@ -378,7 +378,7 @@
|
|
|
|
/** Compute the weighted centroid vector for the triangle or polygon formed by the given arcs
|
|
* using a triangle fan approach. This method is specifically designed for use with areas of very small size,
|
|
- * where use of the standard algorithm from {@link ##computeArcPoleWeightedCentroidVector(List))} can produce
|
|
+ * where use of the standard algorithm from {@link #computeArcPoleWeightedCentroidVector(List)} can produce
|
|
* inaccurate results. The algorithm proceeds as follows:
|
|
* <ol>
|
|
* <li>The polygon is divided into spherical triangles using a triangle fan.</li>
|
|
@@ -386,13 +386,13 @@
|
|
* of the spherical centroid. This ensures that the computed centroid lies within the area.</li>
|
|
* <li>The length of the weighted centroid vector is determined by computing the sum of the contributions that
|
|
* each arc in the triangle would make to the centroid using the algorithm from
|
|
- * {@link ##computeArcPoleWeightedCentroidVector(List)}. This essentially performs part of that algorithm in
|
|
+ * {@link #computeArcPoleWeightedCentroidVector(List)}. This essentially performs part of that algorithm in
|
|
* reverse: given a centroid direction, compute the contribution that each arc makes.</li>
|
|
* <li>The sum of the weighted centroid vectors for each triangle is computed and returned.</li>
|
|
* </ol>
|
|
* @param arcs boundary arcs for the area; must contain at least 3 arcs
|
|
* @return the weighted centroid vector for the area
|
|
- * @see ##computeArcPoleWeightedCentroidVector(List)
|
|
+ * @see #computeArcPoleWeightedCentroidVector(List)
|
|
*/
|
|
private static Vector3D computeTriangleFanWeightedCentroidVector(final List<GreatArc> arcs) {
|
|
final Iterator<GreatArc> arcIt = arcs.iterator();
|