refactor aztec Detector::expand_square

This commit is contained in:
Vukašin Stepanović
2023-02-15 14:54:51 +00:00
parent 6b7099a03b
commit 049d27723d
2 changed files with 16 additions and 16 deletions

View File

@@ -214,6 +214,10 @@ impl RXingResultPoint {
}
}
pub fn middle(self, p: Self) -> Self {
(self + p) / 2.0
}
pub fn normalized(self) -> Self {
self / Self::length(self)
}