From d58ca0ccf1f2b750d03c599e997362c89e6d8757 Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Thu, 23 Jan 2025 13:25:53 -0800 Subject: [PATCH] Javadoc --- .../main/java/org/locationtech/jts/algorithm/Distance.java | 2 +- .../src/main/java/org/locationtech/jts/geom/Coordinate.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/src/main/java/org/locationtech/jts/algorithm/Distance.java b/modules/core/src/main/java/org/locationtech/jts/algorithm/Distance.java index 47da76e23..51138c1c2 100644 --- a/modules/core/src/main/java/org/locationtech/jts/algorithm/Distance.java +++ b/modules/core/src/main/java/org/locationtech/jts/algorithm/Distance.java @@ -200,7 +200,7 @@ public static double pointToSegment(Coordinate p, Coordinate A, * one point of the line * @param B * another point of the line (must be different to A) - * @return the distance from p to line segment AB + * @return the squared distance from p to line segment AB */ public static double pointToSegmentSq(Coordinate p, Coordinate A, Coordinate B) diff --git a/modules/core/src/main/java/org/locationtech/jts/geom/Coordinate.java b/modules/core/src/main/java/org/locationtech/jts/geom/Coordinate.java index 196c37a9e..e787bd0c0 100644 --- a/modules/core/src/main/java/org/locationtech/jts/geom/Coordinate.java +++ b/modules/core/src/main/java/org/locationtech/jts/geom/Coordinate.java @@ -440,11 +440,11 @@ public double distance(Coordinate c) { } /** - * Computes the 2-dimensional squared Euclidean distance to another location. + * Computes the squared 2-dimensional Euclidean distance to another location. * The Z-ordinate is ignored. * * @param c a point - * @return the 2-dimensional squared Euclidean distance between the locations + * @return the squared 2-dimensional Euclidean distance between the locations */ public double distanceSq(Coordinate c) { double dx = x - c.x;