Class: Bayonetta::MOT2File::Interpolation1
- Inherits:
-
LibBin::Structure
- Object
- LibBin::Structure
- Bayonetta::MOT2File::Interpolation1
- Defined in:
- lib/bayonetta/mot.rb
Instance Method Summary collapse
Instance Method Details
#value(frame_index) ⇒ Object
149 150 151 152 153 |
# File 'lib/bayonetta/mot.rb', line 149 def value(frame_index) v = @keys[frame_index] v = @keys.last unless v v end |
#values(frame_count) ⇒ Object
144 145 146 147 |
# File 'lib/bayonetta/mot.rb', line 144 def values(frame_count) count = frame_count @keys + [@keys.last] * (count - keys.length) end |