Skip to content

Commit e580382

Browse files
committed
fix: use collection instead of point
1 parent 75cf878 commit e580382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/thealgorithms/geometry/MidpointCircle.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.geometry;
22

33
import java.util.ArrayList;
4+
import java.util.Collection;
45
import java.util.List;
56

67
/**
@@ -70,7 +71,7 @@ public static List<int[]> generateCirclePoints(int centerX, int centerY, int rad
7071
* @param x The current x-coordinate on the circumference.
7172
* @param y The current y-coordinate on the circumference.
7273
*/
73-
private static void addSymmetricPoints(List<int[]> points, int centerX, int centerY, int x, int y) {
74+
private static void addSymmetricPoints(Collection<int[]> points, int centerX, int centerY, int x, int y) {
7475
// Octant symmetry points
7576
points.add(new int[] {centerX + x, centerY + y});
7677
points.add(new int[] {centerX - x, centerY + y});

0 commit comments

Comments
 (0)