Sha256: 0257c676dd36f753f97d9ebc429ecda0f2cbc9a4f2a08293b2871a1aafab3908

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module GuiGeometry
module Tools
  def min(a,b) a < b ? a : b; end
  def max(a,b) a > b ? a : b; end
  def bound(a,bounded,c) bounded < a ? a : (bounded > c) ? c : bounded; end

  def point(*args); GuiGeometry::Point.new *args end
  def rect(*args); GuiGeometry::Rectangle.new *args end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gui_geometry-0.0.4 lib/gui_geometry/tools.rb