Lint.
This commit is contained in:
parent
0ff10e99dd
commit
08ea5ca089
@ -1,7 +1,6 @@
|
||||
use rand;
|
||||
use rand::Rng;
|
||||
|
||||
use bvh::BVH;
|
||||
use camera::Camera;
|
||||
use hitable::Hit;
|
||||
use hitable_list::HitableList;
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
use std::f32::consts::PI;
|
||||
|
||||
use rand;
|
||||
use rand::Rng;
|
||||
|
||||
use camera::Camera;
|
||||
use hitable::Hit;
|
||||
use hitable_list::HitableList;
|
||||
@ -39,8 +36,6 @@ pub fn new(opt: &Opt) -> Scene {
|
||||
))];
|
||||
let num_spheres = 6;
|
||||
let radius = 7.;
|
||||
let mut rng = rand::thread_rng();
|
||||
let mut random = || rng.gen_range::<f32>(0., 1.);
|
||||
for i in 0..num_spheres {
|
||||
let c1 = radius * ((2. * PI) * (i as f32 / num_spheres as f32)).sin();
|
||||
let c2 = radius * ((2. * PI) * (i as f32 / num_spheres as f32)).cos();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user