pub fn rect(&self) -> Rect<u32> {
        Rect {
            location: Vector2 { x: 0, y: 0 },
            dimensions: self.dimensions(),
        }
    }
/// Get the bounding rect for the image, located at (0,0) and having size
/// equal to the image's dimensions.
///
/// # Example
///
/// ```
/// # use riddle_image::*; use riddle_math::*;
/// let img = Image::new(1,1);
/// assert_eq!(Rect::new(Vector2::new(0, 0), Vector2::new(1, 1)), img.rect());
/// ```
Get the bounding rect for the image, located at (0,0) and having size
equal to the image's dimensions.
Get the bounding rect for the image located at ( 0 0 ) and having size equal to the image ' s dimensions .
pub fn rect(&self) -> Rect<u32> {
        Rect {
            location: Vector2 { x: 0, y: 0 },
            dimensions: self.dimensions(),
        }
    }
pub fn rect ( & self ) -> Rect < u32 > { Rect { location : Vector2 { x : 0 , y : 0 } , dimensions : self . dimensions ( ) , } }
Get the bounding rect for the image, located at (0,0) and having size
equal to the image's dimensions.
Get the bounding rect for the image located at ( 0 0 ) and having size equal to the image ' s dimensions .
&self
&self
example
None
use riddle_image::*; use riddle_math::*;
None