From 3549acb5dbd2f6fe43be6cce9828785ccead7e77 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Fri, 14 Jun 2024 12:23:49 +0100 Subject: Finished! Good god performance nope. --- lib/hittable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/hittable.rb') diff --git a/lib/hittable.rb b/lib/hittable.rb index 2a433d8..1e22613 100644 --- a/lib/hittable.rb +++ b/lib/hittable.rb @@ -45,8 +45,8 @@ class Hittables < Hittable end class Sphere < Hittable - def initialize(ox, oy, oz, radius = 1, material) - @centre = Point.new(ox, oy, oz) + def initialize(centre, radius = 1, material) + @centre = centre @radius = radius @material = material end -- cgit v1.2.1