[][src]Function graphics::math::relative_source_rectangle

pub fn relative_source_rectangle<T>(
    rect: SourceRectangle<T>,
    x: T,
    y: T
) -> SourceRectangle<T> where
    T: Float, 

Computes a relative source rectangle using the source rectangle as a tile.