Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/geometry/comparison_with_precision.rb

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object


2
3
4
# File 'lib/geometry/comparison_with_precision.rb', line 2

def ===(other)
  (self - other).abs <= Float::EPSILON * 2
end