width

Rectangle width (max.x - min.x).

Examples

# use bevy_math::Rect;
let r = Rect::new(0., 0., 5., 1.); // w=5 h=1
assert!((r.width() - 5.).abs() <= 1e-5);

Arguments

  • _self : Rect - No Documentation 🚧

Returns

  • arg0 : f32 - No Documentation 🚧