mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add helper routines for qr finding
This commit is contained in:
parent
dc20c84785
commit
b1e31924a0
1 changed files with 6 additions and 0 deletions
|
|
@ -63,6 +63,12 @@ pub struct Point {
|
|||
}
|
||||
impl Point {
|
||||
pub fn new(x: isize, y: isize) -> Self { Point { x, y } }
|
||||
|
||||
pub fn to_f32(&self) -> (f32, f32) { (self.x as f32, self.y as f32) }
|
||||
}
|
||||
|
||||
impl Default for Point {
|
||||
fn default() -> Self { Point::new(0, 0) }
|
||||
}
|
||||
|
||||
impl Add for Point {
|
||||
|
|
|
|||
Loading…
Reference in a new issue