Toot

Written by oli on 2024-11-09 at 18:58

@runevision

pub fn get_roads_overlapping_bounds(layer: Layer, bounds: GridBounds, out_roads: &mut Vec) {
    for chunk in layer.get_grid_range(grid_bounds) {
        for &road in &chunk.roads {
            if bounds.overlaps(road.bounds) {
                out_roads.push(road);
            }
        }
    }
}

=> More informations about this toot | View the thread | More toots from oli@hachyderm.io

Mentions

=> View runevision@mastodon.gamedev.place profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113454599758574674
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
227.235077 milliseconds
Gemini-to-HTML Time
0.502829 milliseconds

This content has been proxied by September (3851b).