lib/mittsu/extras/image_utils.rb in mittsu-0.3.2 vs lib/mittsu/extras/image_utils.rb in mittsu-0.3.3

- old
+ new

@@ -74,10 +74,10 @@ def subtract(a, b) [a[0] - b[0], a[1] - b[1], a[2] - b[2]] end def normalize(a) - l = Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]) + l = ::Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]) [a[0] / l, a[1] / l, a[2] / l] end end end end