Function rect

Source
pub fn rect<T, U>(x: T, y: T, w: T, h: T) -> TypedRect<T, U>
where T: Copy,
Expand description

Shorthand for TypedRect::new(TypedPoint2D::new(x, y), TypedSize2D::new(w, h)).