mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
swap point_f and point functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::common::Result;
|
||||
use crate::{point, Point};
|
||||
use crate::{point_f, Point};
|
||||
|
||||
pub trait RegressionLineTrait {
|
||||
// points: Vec<Point>,
|
||||
@@ -23,7 +23,7 @@ pub trait RegressionLineTrait {
|
||||
let x = (l1.c() * l2.b() - l1.b() * l2.c()) / d;
|
||||
let y = (l1.a() * l2.c() - l1.c() * l2.a()) / d;
|
||||
|
||||
Some(point(x, y))
|
||||
Some(point_f(x, y))
|
||||
}
|
||||
|
||||
// fn evaluate_begin_end(&self, begin: Point, end: Point) -> bool;// {
|
||||
|
||||
Reference in New Issue
Block a user