Skip to content

Commit d58ca0c

Browse files
committed
Javadoc
1 parent 382a24a commit d58ca0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/core/src/main/java/org/locationtech/jts/algorithm/Distance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static double pointToSegment(Coordinate p, Coordinate A,
200200
* one point of the line
201201
* @param B
202202
* another point of the line (must be different to A)
203-
* @return the distance from p to line segment AB
203+
* @return the squared distance from p to line segment AB
204204
*/
205205
public static double pointToSegmentSq(Coordinate p, Coordinate A,
206206
Coordinate B)

modules/core/src/main/java/org/locationtech/jts/geom/Coordinate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ public double distance(Coordinate c) {
440440
}
441441

442442
/**
443-
* Computes the 2-dimensional squared Euclidean distance to another location.
443+
* Computes the squared 2-dimensional Euclidean distance to another location.
444444
* The Z-ordinate is ignored.
445445
*
446446
* @param c a point
447-
* @return the 2-dimensional squared Euclidean distance between the locations
447+
* @return the squared 2-dimensional Euclidean distance between the locations
448448
*/
449449
public double distanceSq(Coordinate c) {
450450
double dx = x - c.x;

0 commit comments

Comments
 (0)