/// Creates a rect of the given size, at offset zero.
Creates a rect of the given size, at offset zero.
Creates a rect of the given size at offset zero .
pub fn from_size(size: Size2D<T, U>) -> Self {
        Rect {
            origin: Point2D::zero(),
            size,
        }
    }
pub fn from_size ( size : Size2D < T , U > ) -> Self { Rect { origin : Point2D :: zero ( ) , size , } }
Creates a rect of the given size, at offset zero.
Creates a rect of the given size at offset zero .
size
Size2D<T, U>