Sha256: 706443e53ce9b1dc0598a5fe3ca54a0e5e8392db6530c9295bbb051830b79e9c

Contents?: true

Size: 112 Bytes

Versions: 14

Compression:

Stored size: 112 Bytes

Contents

module Cairo
  class Point
    def distance(other)
      Math.hypot(other.x - x, other.y - y)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cairo-1.17.13 lib/cairo/point.rb
cairo-1.17.12 lib/cairo/point.rb
cairo-1.17.11 lib/cairo/point.rb
cairo-1.17.10 lib/cairo/point.rb
cairo-1.17.9 lib/cairo/point.rb
cairo-1.17.8 lib/cairo/point.rb
cairo-1.17.7 lib/cairo/point.rb
cairo-1.17.6 lib/cairo/point.rb
cairo-1.17.5 lib/cairo/point.rb
cairo-1.17.4 lib/cairo/point.rb
cairo-1.16.6 lib/cairo/point.rb
cairo-1.16.5 lib/cairo/point.rb
cairo-1.16.4 lib/cairo/point.rb
cairo-1.16.3 lib/cairo/point.rb