width

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

Examples

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

Arguments

  • _self : URect - No Documentation 🚧

Returns

  • arg0 : u32 - No Documentation 🚧