width

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

Examples

# use bevy_math::IRect;
let r = IRect::new(0, 0, 5, 1); // w=5 h=1
assert_eq!(r.width(), 5);

Arguments

  • _self : IRect - No Documentation 🚧

Returns

  • arg0 : i32 - No Documentation 🚧