lib/mittsu/extras/geometries/icosahedron_geometry.rb in mittsu-0.3.2 vs lib/mittsu/extras/geometries/icosahedron_geometry.rb in mittsu-0.3.3

- old
+ new

@@ -3,11 +3,11 @@ require 'mittsu/extras/geometries/polyhedron_geometry' module Mittsu class IcosahedronGeometry < PolyhedronGeometry def initialize(radius = 1.0, detail = 0) - t = (1.0 + Math.sqrt(5)) / 2.0 + t = (1.0 + ::Math.sqrt(5)) / 2.0 vertices = [ - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1 @@ -28,6 +28,6 @@ radius: radius, detail: detail } end end -end \ No newline at end of file +end