Method: PhotoUtils::Frame#diagonal

Defined in:
lib/photo_utils/frame.rb

#diagonalObject



29
30
31
32
# File 'lib/photo_utils/frame.rb', line 29

def diagonal
  d = Math.sqrt((@height ** 2) + (@width ** 2))
  Length.new(d)
end