fn new(width: i32, height: i32) -> Boid {
        Boid {
            x: rand::random::<f64>() * width as f64,
            y: rand::random::<f64>() * height as f64,

            vx: rand::random::<f64>() * BOID_SIZE,
            vy: rand::random::<f64>() * BOID_SIZE
        }
    }
// returns a boid within given rectangle
returns a boid within given rectangle
returns a boid within given rectangle
fn new(width: i32, height: i32) -> Boid {
        Boid {
            x: rand::random::<f64>() * width as f64,
            y: rand::random::<f64>() * height as f64,
            vx: rand::random::<f64>() * BOID_SIZE,
            vy: rand::random::<f64>() * BOID_SIZE
        }
    }
fn new ( width : i32 , height : i32 ) -> Boid { Boid { x : rand :: random :: < f64 > ( ) * width as f64 , y : rand :: random :: < f64 > ( ) * height as f64 , vx : rand :: random :: < f64 > ( ) * BOID_SIZE , vy : rand :: random :: < f64 > ( ) * BOID_SIZE } }
returns a boid within given rectangle
returns a boid within given rectangle
width
i32
height
i32
width
i32
height
i32