Sha256: efcd44a68eaf4af3358be0768e59b455463180704c64ffd88ad38844d58b5a36

Contents?: true

Size: 265 Bytes

Versions: 2

Compression:

Stored size: 265 Bytes

Contents

module GuiGeo
module Tools
  include ::GuiGeo
  def min(a,b) a < b ? a : b; end
  def max(a,b) a > b ? a : b; end
  def minmax(a,b)
    if a <= b
      return a, b
    else
      return b, a
    end
  end
  def bound(a,bounded,c) max(a,min(bounded,c)); end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gui_geometry-0.1.1 lib/gui_geometry/tools.rb
gui_geometry-0.1.0 lib/gui_geometry/tools.rb