Type Alias CollisionGrid

Source
type CollisionGrid = GridIndex<IndexedSubfeature>;
Expand description

maplibre/maplibre-native#4add9ea original name: CollisionGrid

Aliased Type§

struct CollisionGrid {
    width: f64,
    height: f64,
    x_cell_count: usize,
    y_cell_count: usize,
    x_scale: f64,
    y_scale: f64,
    estimated_elements_per_cell: usize,
    box_elements: Vec<(IndexedSubfeature, Box2D<f64, ScreenSpace>)>,
    circle_elements: Vec<(IndexedSubfeature, Circle<f64>)>,
    box_cells: Vec<Vec<u32>>,
    circle_cells: Vec<Vec<u32>>,
}

Fields§

§width: f64§height: f64§x_cell_count: usize§y_cell_count: usize§x_scale: f64§y_scale: f64§estimated_elements_per_cell: usize§box_elements: Vec<(IndexedSubfeature, Box2D<f64, ScreenSpace>)>§circle_elements: Vec<(IndexedSubfeature, Circle<f64>)>§box_cells: Vec<Vec<u32>>§circle_cells: Vec<Vec<u32>>