Function piston_window::math::relative_source_rectangle

source ยท
pub fn relative_source_rectangle<T>(rect: [T; 4], x: T, y: T) -> [T; 4]
where T: Float,
Expand description

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