Sha256: 3602ecbfaddf31740c90b8d0f9e7549cb70333e22bbdb894d0e0d9c432c9bb79

Contents?: true

Size: 145 Bytes

Versions: 3

Compression:

Stored size: 145 Bytes

Contents

module GridGenerator
  module Helper
    def self.distance(a, b)
      Math.sqrt((b[0,0] - a[0,0])**2 + (b[1,0] - a[1,0])**2)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grid_generator-0.2.6 lib/grid_generator/helper.rb
grid_generator-0.2.5 lib/grid_generator/helper.rb
grid_generator-0.2.4 lib/grid_generator/helper.rb