lib/mittsu/extras/geometries/dodecahedron_geometry.rb in mittsu-0.3.2 vs lib/mittsu/extras/geometries/dodecahedron_geometry.rb in mittsu-0.3.3
- old
+ new
@@ -3,11 +3,11 @@
require 'mittsu/extras/geometries/polyhedron_geometry'
module Mittsu
class DodecahedronGeometry < PolyhedronGeometry
def initialize(radius = 1.0, detail = 0)
- t = (1.0 + Math.sqrt(5.0)) / 2.0
+ t = (1.0 + ::Math.sqrt(5.0)) / 2.0
r = 1.0 / t
vertices = [
# (±1, ±1, ±1)
-1, -1, -1, -1, -1, 1,
@@ -51,6 +51,6 @@
radius: radius,
detail: detail
}
end
end
-end
\ No newline at end of file
+end