aboutsummaryrefslogtreecommitdiff
path: root/lib/hittable.rb
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-06-14 12:23:49 +0100
committerNat Lasseter <user@4574.co.uk>2024-06-14 12:23:49 +0100
commit3549acb5dbd2f6fe43be6cce9828785ccead7e77 (patch)
treec4cb0f2db631d3b60b641f6c8e654663940b3d38 /lib/hittable.rb
parent3bf56da7aa64ea3ca05559a4e52df8f596bcf86b (diff)
Finished! Good god performance nope.HEADmain
Diffstat (limited to 'lib/hittable.rb')
-rw-r--r--lib/hittable.rb4
1 files changed, 2 insertions, 2 deletions
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