Skip to content

Commit 5175429

Browse files
committed
feat: added rotating calipers
1 parent 9d7937d commit 5175429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ private RotatingCalipers() {
1515
}
1616

1717
// -------------------- Inner Classes --------------------
18-
public static record PointPair(Point p1, Point p2, double distance) {
18+
public record PointPair(Point p1, Point p2, double distance) {
1919
}
2020

21-
public static record Rectangle(Point[] corners, double width, double height, double area) {
21+
public record Rectangle(Point[] corners, double width, double height, double area) {
2222
}
2323

2424
// -------------------- Diameter --------------------

0 commit comments

Comments
 (0)