This is an automated email from the ASF dual-hosted git repository.

mattjuntunen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git

commit 9ba6ea599e01a13126dcf52a7a1972a178fc462d
Author: Andreas <andreas.goss1...@gmail.com>
AuthorDate: Wed Aug 23 19:45:05 2023 +0200

    GEOMETRY-144
    
    Exit method sooner.
---
 .../org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
 
b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
index 16a77fcc..df3095c8 100644
--- 
a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
+++ 
b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
@@ -181,6 +181,7 @@ public final class ConvexHull2D implements 
ConvexHull<Vector2D> {
             if (checkCorners(point)) {
                 //build quadrilateral if any of the corners has changed.
                 buildQuadrilateral(minY, maxX, maxY, minX);
+                return this;
             }
 
             // if the quadrilateral is not well formed, e.g. only 2 points, do 
not attempt to reduce

Reply via email to