Commit Graph
20 Commits
Author SHA1 Message Date
Vukašin Stepanović 1322f7defa remove impl ResultPoint for FinderPattern & AlignmentPattern 2023-02-16 16:33:22 +00:00
Vukašin Stepanović 072d3d0ec7 change PointCallback to accept Point instead of ResultPoint 2023-02-16 16:20:58 +00:00
Vukašin Stepanović 0992e85e6c remove ResultPoint trait uses of Point
Point already has `x` and `y` properties, so accessing
them with `getX()` and `getY()` is needlessly verbose.
These calls have been removed, though the trait impl is
still presen for the time being, since the OneDReader
proc macro requires it.
2023-02-16 15:54:07 +00:00
Vukašin Stepanović 9889555b02 refactor ResultPoint trait bounds into Into<Point> bounds 2023-02-16 15:19:35 +00:00
Vukašin Stepanović 00f007f14c refactor orderBestPatterns to not use ResultPoint 2023-02-16 15:10:33 +00:00
Vukašin Stepanović 41150a8f8b re-add RXingResultPointCallback for backwards-compat 2023-02-16 15:02:30 +00:00
Vukašin Stepanović 3881df6672 Remove result_point_utils::distance() 2023-02-16 12:50:24 +00:00
Vukašin Stepanović 39b4866e47 add point(x: f32, y: f32) function
Shorter than writing `Point::new`
2023-02-16 11:20:03 +00:00
Vukašin Stepanović 868a9b26de remove MathUtils module 2023-02-16 09:38:37 +00:00
Vukašin Stepanović 71128a81bc remove MathUtils::round() 2023-02-16 09:37:21 +00:00
Vukašin Stepanović 79d9b28d19 remove MathUtils::distance() 2023-02-16 09:28:22 +00:00
Vukašin Stepanović 844ffc3b81 cargo fmt 2023-02-16 08:40:57 +00:00
Vukašin Stepanović 05e377e85b add aliases so the OneDReader proc macro compiles
Currently it's not possible to rename RXingResultPoint
to Point cleanly, since the external OneDReader proc macro
makes use of them. For the time being, simple aliases
are introduced to get the code to compile, but the plan
is to remove them at a later point.
2023-02-16 08:31:35 +00:00
Vukašin Stepanović dbc6ca4e55 wip: Search & replace RXingResultPoint with Point
Build fails because the OneDReader proc macro expects
that a RXingResultPoint type exists.
2023-02-16 08:25:32 +00:00
Vukašin Stepanović 15280d5f98 Merge branch 'main' into pr/point_refactor 2023-02-16 07:19:36 +00:00
Vukašin Stepanović 4a35cb6e99 use Self::new() for point creation 2023-02-16 07:03:02 +00:00
Vukašin Stepanović 049d27723d refactor aztec Detector::expand_square 2023-02-15 14:54:51 +00:00
Vukašin Stepanović 6b7099a03b remove indirection for RxingResultPoint
Previously, the struct was passed around everywhere as a
reference. It only holds two floats, so there's no real
need for indirection. Now it's being passed as a value.
2023-02-15 14:42:07 +00:00
Vukašin Stepanović 755e4a6e69 add missing imports 2023-02-15 12:59:25 +00:00
Vukašin Stepanović 8ee616d96b refactor to use common result type 2023-02-14 23:01:05 +00:00