Sha256: 24d9f4aecd4c560848b7ab489c3bccee07cbc31f59a32aa3751f500051335f09

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

require 'geometer/version'

require 'geometer/point'
require 'geometer/line'
require 'geometer/dimensions'
require 'geometer/rectangle'

module Geometer
  module PointHelpers
    def coord(x,y); Point.new(x,y) end
  end

  module DimensionHelpers
    def dim(w,h); Dimensions.new(w,h) end
  end

  module LineHelpers
    def dist(a,b)
      Line.new(a,b).length
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geometer-0.1.0 lib/geometer.rb