refactor orderBestPatterns to not use ResultPoint

This commit is contained in:
Vukašin Stepanović
2023-02-16 15:10:24 +00:00
parent 41150a8f8b
commit 00f007f14c
2 changed files with 31 additions and 43 deletions

View File

@@ -44,6 +44,18 @@ impl ResultPoint for FinderPattern {
}
}
impl From<&FinderPattern> for Point {
fn from(value: &FinderPattern) -> Self {
value.point
}
}
impl From<FinderPattern> for Point {
fn from(value: FinderPattern) -> Self {
value.point
}
}
impl FinderPattern {
pub fn new(posX: f32, posY: f32, estimatedModuleSize: f32) -> Self {
Self::private_new(posX, posY, estimatedModuleSize, 1)