Class: Bayonetta::MOTFile::Interpolation1
- Inherits:
-
LibBin::Structure
- Object
- LibBin::Structure
- Bayonetta::MOTFile::Interpolation1
- Defined in:
- lib/bayonetta/mot.rb
Instance Method Summary collapse
Instance Method Details
#value(frame_index) ⇒ Object
501 502 503 504 505 |
# File 'lib/bayonetta/mot.rb', line 501 def value(frame_index) v = @keys[frame_index] v = @keys.last unless v v end |
#values(frame_count) ⇒ Object
496 497 498 499 |
# File 'lib/bayonetta/mot.rb', line 496 def values(frame_count) count = frame_count @keys + [@keys.last] * (count - keys.length) end |