use egui::Vec2;
#[derive(Debug, Default, Clone, Copy, PartialEq)]
pub struct Size {
pub width: f32,
pub height: f32,
}
impl Size {
pub fn new(width: f32, height: f32) -> Self {
Self { width, height }
}
}
impl From<Vec2> for Size {
fn from(value: Vec2) -> Self {
Self {
width: value.x,
height: value.y,
}
}
}