Trait UVec2Extensions

Source
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§