Class: MagicaVoxel::Frame
- Inherits:
-
Object
- Object
- MagicaVoxel::Frame
- Defined in:
- lib/magica_voxel/frame.rb
Overview
The Frame of Transform
Instance Method Summary collapse
-
#index ⇒ Number
Index.
-
#initialize(attributes) ⇒ Frame
constructor
A new instance of Frame.
-
#inspect ⇒ Object
:nodoc:.
-
#rotation ⇒ Matrix
Rotation.
-
#translate ⇒ Vector3
Translate.
Constructor Details
#initialize(attributes) ⇒ Frame
Returns a new instance of Frame.
13 14 15 |
# File 'lib/magica_voxel/frame.rb', line 13 def initialize(attributes) @attributes = attributes end |
Instance Method Details
#index ⇒ Number
Index
42 43 44 45 46 |
# File 'lib/magica_voxel/frame.rb', line 42 def index return 0 if @attributes['_f'].nil? @index ||= @attributes['_f'].to_i end |
#inspect ⇒ Object
:nodoc:
51 52 53 |
# File 'lib/magica_voxel/frame.rb', line 51 def inspect "#<MagicaVoxel::Frame index=#{index}, translate=#{translate}>" end |
#rotation ⇒ Matrix
Rotation
22 23 24 |
# File 'lib/magica_voxel/frame.rb', line 22 def rotation nil # TODO end |