diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-06-14 12:23:49 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-06-14 12:23:49 +0100 |
commit | 3549acb5dbd2f6fe43be6cce9828785ccead7e77 (patch) | |
tree | c4cb0f2db631d3b60b641f6c8e654663940b3d38 /lib/hittable.rb | |
parent | 3bf56da7aa64ea3ca05559a4e52df8f596bcf86b (diff) |
Diffstat (limited to 'lib/hittable.rb')
-rw-r--r-- | lib/hittable.rb | 4 |
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 |