Skip to content

Commit ea26be4

Browse files
committed
fix: change List to Collection in compute
1 parent 03eda2c commit ea26be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static List<int[]> drawEllipse(int centerX, int centerY, int a, int b) {
6464
* @param a the length of the semi-major axis (horizontal radius)
6565
* @param b the length of the semi-minor axis (vertical radius)
6666
*/
67-
private static void computeEllipsePoints(List<int[]> points, int centerX, int centerY, int a, int b) {
67+
private static void computeEllipsePoints(Collection<int[]> points, int centerX, int centerY, int a, int b) {
6868
int x = 0; // Initial x-coordinate
6969
int y = b; // Initial y-coordinate
7070

0 commit comments

Comments
 (0)