pub fn new( x: T, y: T, width: T, height: T ) -> Rect<T> {
		Rect::<T> {
			p1: Point::new( x, y ),
			p2: Point::new( x + width.abs(), y - height.abs() )
		}
	}
/// Returns a new rectangle with the supplied
/// upper left corner at (x, y) and with the given width and height.
Returns a new rectangle with the supplied
upper left corner at (x, y) and with the given width and height.
Returns a new rectangle with the supplied upper left corner at ( x y ) and with the given width and height .
pub fn new( x: T, y: T, width: T, height: T ) -> Rect<T> {
		Rect::<T> {
			p1: Point::new( x, y ),
			p2: Point::new( x + width.abs(), y - height.abs() )
		}
	}
pub fn new ( x : T , y : T , width : T , height : T ) -> Rect < T > { Rect :: < T > { p1 : Point :: new ( x , y ) , p2 : Point :: new ( x + width . abs ( ) , y - height . abs ( ) ) } }
Returns a new rectangle with the supplied
upper left corner at (x, y) and with the given width and height.
Returns a new rectangle with the supplied upper left corner at ( x y ) and with the given width and height .
x
T
y
T
width
T
height
T
x
T
y
T
width
T
height
T