mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Avoid implicit downcast in corner detection (#219)
This commit is contained in:
@@ -174,7 +174,7 @@ public class CornerDetectionPipe
|
||||
// and maximize their distance from the center of the min area rectangle
|
||||
var leftList = new ArrayList<Point>();
|
||||
var rightList = new ArrayList<Point>();
|
||||
var averageXCoordinate = 0;
|
||||
double averageXCoordinate = 0.0;
|
||||
for (var p : pointList) {
|
||||
averageXCoordinate += p.x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user