lib/mittsu/math/vector.rb in mittsu-0.3.2 vs lib/mittsu/math/vector.rb in mittsu-0.3.3

- old
+ new

@@ -158,11 +158,11 @@ def length_sq self.dot(self) end def length - Math.sqrt(length_sq) + ::Math.sqrt(length_sq) end def normalize self.divide_scalar(self.length) end @@ -209,14 +209,14 @@ def angle_to(v) theta = self.dot(v) / (self.length * v.length) # clamp, to handle numerical problems - Math.acos(Math.clamp(theta, -1.0, 1.0)) + ::Math.acos(Math.clamp(theta, -1.0, 1.0)) end def distance_to(v) - Math.sqrt(self.distance_to_squared(v)) + ::Math.sqrt(self.distance_to_squared(v)) end def ==(v) each_dimension do |i| return false if @elements[i] != v.elements[i]