pub fn new(x: f64, y: f64, w: f64, h: f64) -> Self {
        Self {
            x,
            y,
            w,
            h,
            center_x: x + w * 0.5,
            center_y: y + h * 0.5,
        }
    }
/// Constuct a new Rect from x, y, and size
Constuct a new Rect from x, y, and size
Constuct a new Rect from x y and size
pub fn new(x: f64, y: f64, w: f64, h: f64) -> Self {
        Self {
            x,
            y,
            w,
            h,
            center_x: x + w * 0.5,
            center_y: y + h * 0.5,
        }
    }
pub fn new ( x : f64 , y : f64 , w : f64 , h : f64 ) -> Self { Self { x , y , w , h , center_x : x + w * 0.5 , center_y : y + h * 0.5 , } }
Constuct a new Rect from x, y, and size
Constuct a new Rect from x y and size
x
f64
y
f64
w
f64
h
f64
x
f64
y
f64
w
f64
h
f64