/usr/lib/ruby/vendor_ruby/cairo/point.rb is in ruby-cairo 1.10.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | module Cairo
class Point
def distance(other)
Math.sqrt((other.x - x) ** 2 + (other.y - y) ** 2)
end
end
end
|