diff --git a/src/camera.rs b/src/camera.rs index 44dc032..8a61ce6 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -55,11 +55,11 @@ impl Camera { let lens_radius = aperture / 2.0; Self { - lens_radius, - lower_left_corner, + origin, horizontal, vertical, - origin, + lower_left_corner, + lens_radius, u, v, w, diff --git a/src/hitable/shapes/moving_sphere.rs b/src/hitable/shapes/moving_sphere.rs index 4e849ca..45ac5d4 100644 --- a/src/hitable/shapes/moving_sphere.rs +++ b/src/hitable/shapes/moving_sphere.rs @@ -23,11 +23,11 @@ impl MovingSphere { material: T, ) -> Self { Self { + radius, center_start, center_end, time_start, time_end, - radius, material, } }