[][src]Function dezoomify_rs::max_size_in_rect

pub fn max_size_in_rect(
    position: Vec2d,
    tile_size: Vec2d,
    canvas_size: Vec2d
) -> Vec2d

Returns the maximal size a tile can have in order to fit in a canvas of the given size