use crate::{common::BitMatrix, Point};
pub struct PDF417DetectorRXingResult {
bits: BitMatrix,
points: Vec<[Option<Point>; 8]>,
rotation: u32,
}
impl PDF417DetectorRXingResult {
pub fn with_rotation(bits: BitMatrix, points: Vec<[Option<Point>; 8]>, rotation: u32) -> Self {
Self {
bits,
points,
rotation,
}
}
pub fn new(bits: BitMatrix, points: Vec<[Option<Point>; 8]>) -> Self {
Self::with_rotation(bits, points, 0)
}
pub fn getBits(&self) -> &BitMatrix {
&self.bits
}
pub fn getPoints(&self) -> &Vec<[Option<Point>; 8]> {
&self.points
}
pub fn getRotation(&self) -> u32 {
self.rotation
}
}