pub trait UVec2Extensions {
    // Required methods
    fn fit_width(self, width: u32) -> Vec2;
    fn fit_height(self, height: u32) -> Vec2;
    fn fit_rect(self, width: u32, height: u32) -> Vec2;
    fn fit_square(self, size: u32) -> Vec2;
}

Required Methods§

source

fn fit_width(self, width: u32) -> Vec2

source

fn fit_height(self, height: u32) -> Vec2

source

fn fit_rect(self, width: u32, height: u32) -> Vec2

source

fn fit_square(self, size: u32) -> Vec2

Implementors§