Struct collisions::quadtree::Quadtree
[−]
[src]
pub struct Quadtree { pub vertx: [f32; 4], pub verty: [f32; 4], pub quads: Vec<Quadtree>, pub items: Vec<Collidable>, }
Fields
vertx: [f32; 4]
verty: [f32; 4]
quads: Vec<Quadtree>
items: Vec<Collidable>
Methods
impl Quadtree
[src]
fn new(vertx: &[f32], verty: &[f32], depth: usize) -> Quadtree
fn insert(&mut self, item: Collidable)
fn check_collisions(&self, collisions: &mut Vec<Collision>) -> Vec<&Collidable>
Trait Implementations
impl Clone for Quadtree
[src]
fn clone(&self) -> Quadtree
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more