Use multiplication instead of division

This commit is contained in:
Roman Bapst
2023-01-27 16:39:58 +03:00
committed by Daniel Agar
parent 0c735dea2e
commit 4646762f9d
+1 -1
View File
@@ -219,7 +219,7 @@ WindEstimator::run_sanity_checks()
// attain symmetry
for (unsigned row = 0; row < 3; row++) {
for (unsigned column = 0; column < row; column++) {
const float tmp = (_P(row, column) + _P(column, row)) / 2.f;
const float tmp = (_P(row, column) + _P(column, row)) * 0.5f;
_P(row, column) = tmp;
_P(column, row) = tmp;
}