lib/rays/point.rb in rays-0.1.28 vs lib/rays/point.rb in rays-0.1.29
- old
+ new
@@ -31,9 +31,10 @@
def to_a(dimension = 2)
case dimension
when 1 then [x]
when 2 then [x, y]
when 3 then [x, y, z]
+ when 4 then [x, y, z, 1.0]
else raise ArgumentError
end
end
def to_s(dimension = 2)