lib/mittsu/math.rb in mittsu-0.3.2 vs lib/mittsu/math.rb in mittsu-0.3.3
- old
+ new
@@ -15,16 +15,11 @@
require 'mittsu/math/triangle'
require 'mittsu/math/vector2'
require 'mittsu/math/vector3'
require 'mittsu/math/vector4'
-BuiltInMath = Math
-
module Mittsu
module Math
- extend BuiltInMath
- include BuiltInMath
- BuiltInMath.methods.each { |m| public_class_method m }
def self.sign(x)
return Float::NAN unless x.is_a? Numeric
return Float::NAN if x.to_f.nan?
return x.to_f if x.zero?