Type Alias rvlib::domain::BbF

source ·
pub type BbF = BB<TPtF>;

Aliased Type§

struct BbF {
    pub x: f64,
    pub y: f64,
    pub w: f64,
    pub h: f64,
}

Fields§

§x: f64§y: f64§w: f64§h: f64

Implementations§

source§

impl BbF

source

pub fn translate( self, x_shift: f64, y_shift: f64, shape: ShapeI, oob_mode: OutOfBoundsMode<f64> ) -> Option<Self>

source

pub fn follow_movement( &self, from: PtF, to: PtF, shape: ShapeI, oob_mode: OutOfBoundsMode<f64> ) -> Option<Self>

source

pub fn new_fit_to_image(x: f64, y: f64, w: f64, h: f64, shape: ShapeI) -> Self

source

pub fn center_scale(&self, factor: f64, shape: ShapeI) -> Self

source

pub fn shift_max( &self, x_shift: f64, y_shift: f64, shape: ShapeI ) -> Option<Self>

source

pub fn shift_min( &self, x_shift: f64, y_shift: f64, shape: ShapeI ) -> Option<Self>