lib/mittsu/math/triangle.rb in mittsu-0.3.2 vs lib/mittsu/math/triangle.rb in mittsu-0.3.3
- old
+ new
@@ -69,10 +69,10 @@
v0.sub_vectors(a, b)
target.cross(v0)
result_length_sq = target.length_sq
if (result_length_sq > 0)
- target.multiply_scalar(1.0 / Math.sqrt(result_length_sq))
+ target.multiply_scalar(1.0 / ::Math.sqrt(result_length_sq))
else
target.set(0.0, 0.0, 0.0)
end
end