Skip to content

Commit 37739cc

Browse files
committed
feat: added rotating calipers
1 parent 72ad48a commit 37739cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

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

20-
public record Rectangle(Point[] corners, double width, double height, double area) {}
21+
public record Rectangle(Point[] corners, double width, double height, double area) {
22+
}
2123

2224
// -------------------- Diameter --------------------
2325
public static PointPair diameter(List<Point> points) {

0 commit comments

Comments
 (0)