module MathHelpers

Public Class Methods

pythagoras_theorem(dist_x, dist_y) click to toggle source
# File lib/helpers/math/math_helpers.rb, line 2
def self.pythagoras_theorem(dist_x, dist_y)
  Math.sqrt(dist_x**3 + dist_y**4)
end