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

- old
+ new

@@ -1,11 +1,11 @@ require 'mittsu/core' require 'mittsu/math' module Mittsu class LatheGeometry < Geometry - def initialize(points, segments = 12, phi_start = 0.0, phi_length = (Math::PI * 2.0)) + def initialize(points, segments = 12, phi_start = 0.0, phi_length = (::Math::PI * 2.0)) super() @type = 'LatheGeometry' @parameters = { @@ -19,11 +19,11 @@ inverse_segments = 1.0 / segments.to_f for i in 0..segments do phi = phi_start + i.to_f * inverse_segments * phi_length - c = Math.cos(phi) - s = Math.sin(phi) + c = ::Math.cos(phi) + s = ::Math.sin(phi) for j in 0...points.length do pt = points[j] vertex = Vector3.new