Module: ConvertThirtyFps

Defined in:
lib/convert_thirty_fps.rb

Class Method Summary collapse

Class Method Details

.from_thirty(seconds_float) ⇒ Object



3
4
5
6
# File 'lib/convert_thirty_fps.rb', line 3

def self.from_thirty seconds_float
  twentyNinePointNineSeven = 30000/1001.0 # 29.97
  seconds_float * 30/twentyNinePointNineSeven
end

.from_twenty_nine_nine_seven(seconds_float) ⇒ Object



8
9
10
11
# File 'lib/convert_thirty_fps.rb', line 8

def self.from_twenty_nine_nine_seven seconds_float
  twentyNinePointNineSeven = 30000/1001.0
  seconds_float * twentyNinePointNineSeven/30
end