Sha256: 837dd693b0fc4c31c08df1c332cbd2369a348232c6be19d2d2745f8cdae0c4d5

Contents?: true

Size: 126 Bytes

Versions: 122

Compression:

Stored size: 126 Bytes

Contents

module Cairo
  class Point
    def distance(other)
      Math.sqrt((other.x - x) ** 2 + (other.y - y) ** 2)
    end
  end
end

Version data entries

122 entries across 114 versions & 2 rubygems

Version Path
cairo-1.12.8 lib/cairo/point.rb
cairo-1.12.7-x86-mingw32 lib/cairo/point.rb
cairo-1.12.7 lib/cairo/point.rb
cairo-1.12.6-x86-mingw32 lib/cairo/point.rb
cairo-1.12.6 lib/cairo/point.rb
cairo-1.12.5-x86-mingw32 lib/cairo/point.rb
cairo-1.12.5 lib/cairo/point.rb
cairo-1.12.4-x86-mingw32 lib/cairo/point.rb
cairo-1.12.4 lib/cairo/point.rb
cairo-1.12.3-x86-mingw32 lib/cairo/point.rb
cairo-1.12.3 lib/cairo/point.rb
cairo-1.12.2-x86-mingw32 lib/cairo/point.rb
cairo-1.12.2 lib/cairo/point.rb
cairo-1.12.1-x86-mingw32 lib/cairo/point.rb
cairo-1.12.1 lib/cairo/point.rb
cairo-1.12.0-x86-mingw32 lib/cairo/point.rb
cairo-1.12.0 lib/cairo/point.rb
cairo-1.10.2-x86-mingw32 lib/cairo/point.rb
cairo-1.10.2 lib/cairo/point.rb
cairo-1.10.1-x86-mingw32 lib/cairo/point.rb