Function traffloat_types::geometry::sprite_location[][src]

fn sprite_location(order: u32, side: u32) -> (u32, u32)
Expand description

Returns the coordinates of a sprite in the spritesheet of a given size.

This encoding scheme ensures that the return value of order is homogeneous over decreasing values of side.