1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use speedy2d::dimen::UVec2; pub(crate) struct Dimension { pub(crate) width: usize, pub(crate) height: usize, } impl From<UVec2> for Dimension { fn from(v: UVec2) -> Self { Self { width: v.x as usize, height: v.y as usize, } } }