mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
refactor aztec Detector::expand_square
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user