floor works better

This commit is contained in:
Henry
2022-10-10 22:02:37 -05:00
parent 81551eb202
commit c190933f5f

View File

@@ -290,7 +290,7 @@ impl AlignmentPatternFinder {
let centerJ = Self::centerFromEnd(stateCount, j); let centerJ = Self::centerFromEnd(stateCount, j);
let centerI = self.crossCheckVertical( let centerI = self.crossCheckVertical(
i, i,
centerJ.round() as u32, centerJ.floor() as u32,
2 * stateCount[1], 2 * stateCount[1],
stateCountTotal, stateCountTotal,
); );