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