orbits-lib/resources/orbits/echo_orbits_impl.rb
def shift_ranges(ranges, amount)
  ranges.map do |range|
    CircularRange.new(range[0] + amount, range[1] + amount).denormalize(-180,180)
  end
end
# Shifts the given list of ranges by amount degrees
Shifts the given list of ranges by amount degrees
Shifts the given list of ranges by amount degrees
def shift_ranges(ranges, amount)
  ranges.map do |range|
    CircularRange.new(range[0] + amount, range[1] + amount).denormalize(-180,180)
  end
end
def shift_ranges ( ranges , amount ) ranges . map do | range | CircularRange . new ( range [ 0 ] + amount , range [ 1 ] + amount ) . denormalize ( - 180 , 180 ) end end
Shifts the given list of ranges by amount degrees
Shifts the given list of ranges by amount degrees
ranges
amount