Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jan 23, 2025
1 parent 382a24a commit d58ca0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d58ca0c

Please sign in to comment.