Java icon indicating copy to clipboard operation
Java copied to clipboard

[FEATURE REQUEST] Add few best and efficient algorithms in geometry in Java

Open sandeepgoudmacha opened this issue 1 month ago • 2 comments

What would you like to Propose?

some of the best and unique geometry algorithms that you can implement under src/main/java/com/thealgorithms/geometry/ - each is elegant, mathematically rich, and practical in computational geometry:

1.Rotating Calipers Algorithm 2.Line Segment Intersection 3.Closest Pair of Points (Divide & Conquer) 4.Voronoi Diagram / Delaunay Triangulation 5.Gift Wrapping (Jarvis March)

Issue details

Add some of the best and unique geometry algorithms that you can implement under src/main/java/com/thealgorithms/geometry/ - each is elegant, mathematically rich, and practical in computational geometry

Additional Information

No response

sandeepgoudmacha avatar Oct 21 '25 09:10 sandeepgoudmacha

I want to work on this problem . It's my first hacktoberfest . Could you please assign this to me ?

arorasneha08 avatar Oct 21 '25 14:10 arorasneha08

Hi sir, as per your contribution guidelines, I have directly made a pull request to this issue and will also attach it here. PLs, take your time to review my code on geometry algorithms before merging them to your main branch. Although I described my problems very well in the pull request, I will also provide a brief overview here.

Implemented 5 core computational geometry algorithms in Java: Rotating Calipers (O(n) diameter), Line Intersection (O(1)), Closest Pair (O(n log n)), Delaunay Triangulation, and Gift Wrapping Convex Hull (O(nh)). Each includes complete working code, line-by-line comments, dry runs, and production-ready optimizations.

Aspirant200715 avatar Oct 23 '25 12:10 Aspirant200715