Sha256: e1312147b1e7f47e1fa36dd6511f395abb4e64fca6df1355644f24959a284985
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 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 class << self include GuiGeo::Tools end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gui_geometry-0.2.1 | lib/gui_geometry/tools.rb |
gui_geometry-0.2.0 | lib/gui_geometry/tools.rb |