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.16.2 lib/cairo/point.rb
cairo-1.16.1-x86-mingw32 lib/cairo/point.rb
cairo-1.16.1-x64-mingw32 lib/cairo/point.rb
cairo-1.16.1 lib/cairo/point.rb
cairo-1.16.0-x86-mingw32 lib/cairo/point.rb
cairo-1.16.0-x64-mingw32 lib/cairo/point.rb
cairo-1.16.0 lib/cairo/point.rb
cairo-1.15.14-x86-mingw32 lib/cairo/point.rb
cairo-1.15.14-x64-mingw32 lib/cairo/point.rb
cairo-1.15.14 lib/cairo/point.rb
cairo-1.15.13-x64-mingw32 lib/cairo/point.rb
cairo-1.15.13-x86-mingw32 lib/cairo/point.rb
cairo-1.15.13 lib/cairo/point.rb
cairo-1.15.12-x64-mingw32 lib/cairo/point.rb
cairo-1.15.12-x86-mingw32 lib/cairo/point.rb
cairo-1.15.12 lib/cairo/point.rb
cairo-1.15.11-x64-mingw32 lib/cairo/point.rb
cairo-1.15.11-x86-mingw32 lib/cairo/point.rb
cairo-1.15.11 lib/cairo/point.rb
cairo-1.15.10-x86-mingw32 lib/cairo/point.rb