Skip to content

Commit bb1ef6d

Browse files
authored
Refactor isSpherical method in TargetModel for improved readability
1 parent a06bde6 commit bb1ef6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

photon-core/src/main/java/org/photonvision/vision/target/TargetModel.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ public MatOfPoint3f getVisualizationBoxTop() {
217217
return visualizationBoxTop;
218218
}
219219

220-
public boolean isSpherical() {
221-
return switch (this) {
222-
case kCircularPowerCell7in, k2022CircularCargoBall, k2025Algae -> true;
223-
default -> false;
224-
};
225-
}
220+
public boolean isSpherical() {
221+
return switch (this) {
222+
case kCircularPowerCell7in, k2022CircularCargoBall, k2025Algae -> true;
223+
default -> false;
224+
};
225+
}
226226

227227
// public static TargetModel getCircleTarget(double Units.inchesToMeters(7)) {
228228
// var corners =

0 commit comments

Comments
 (0)