class DemoGemMaking::Measurement

Public Instance Methods

find_lat(x1: , y1: , x2: , y2: ) click to toggle source
# File lib/demo_gem_making.rb, line 7
def find_lat(x1: , y1: , x2: , y2: )
  Math.sqrt((y2 - y1)**2 + (x2 -x1)**2)
end