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