Struct visioncortex::RectangularTransform
source · pub struct RectangularTransform {
pub a: BoundingRect,
pub b: BoundingRect,
}
Expand description
Equivalent to a Homothetic transform
Fields§
§a: BoundingRect
§b: BoundingRect
Implementations§
source§impl RectangularTransform
impl RectangularTransform
pub fn new() -> Self
pub fn new_rect_rect(a: BoundingRect, b: BoundingRect) -> Self
pub fn new_point_point(a: PointI32, b: PointI32) -> Self
pub fn new_point(b: &PointI32) -> Self
Trait Implementations§
source§impl Default for RectangularTransform
impl Default for RectangularTransform
source§fn default() -> RectangularTransform
fn default() -> RectangularTransform
Returns the “default value” for a type. Read more
source§impl Transform for RectangularTransform
impl Transform for RectangularTransform
fn transform(&self, p: &PointI32) -> PointI32
fn transform_rect(&self, r: &BoundingRect) -> BoundingRect
Auto Trait Implementations§
impl Freeze for RectangularTransform
impl RefUnwindSafe for RectangularTransform
impl Send for RectangularTransform
impl Sync for RectangularTransform
impl Unpin for RectangularTransform
impl UnwindSafe for RectangularTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more