Class: Battle::Visual3D::CameraTranslationData
- Defined in:
- docs/5_Battle_02_Visual.rb
Overview
Data class for camera translation entries
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#final_x ⇒ Object
Returns the value of attribute final_x.
-
#final_y ⇒ Object
Returns the value of attribute final_y.
-
#final_z ⇒ Object
Returns the value of attribute final_z.
-
#start_x ⇒ Object
Returns the value of attribute start_x.
-
#start_y ⇒ Object
Returns the value of attribute start_y.
-
#start_z ⇒ Object
Returns the value of attribute start_z.
-
#wait ⇒ Object
Returns the value of attribute wait.
Instance Method Summary collapse
-
#final_coords ⇒ Array<Float>
[x, y, z] final coordinates.
-
#from(camera) ⇒ CameraTranslationData
Return a new CameraTranslationData starting from the camera's current position.
-
#start_coords ⇒ Array<Float>
[x, y, z] start coordinates.
-
#to(camera) ⇒ CameraTranslationData
Return a new CameraTranslationData ending at the camera's current position.
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def duration @duration end |
#final_x ⇒ Object
Returns the value of attribute final_x
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def final_x @final_x end |
#final_y ⇒ Object
Returns the value of attribute final_y
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def final_y @final_y end |
#final_z ⇒ Object
Returns the value of attribute final_z
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def final_z @final_z end |
#start_x ⇒ Object
Returns the value of attribute start_x
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def start_x @start_x end |
#start_y ⇒ Object
Returns the value of attribute start_y
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def start_y @start_y end |
#start_z ⇒ Object
Returns the value of attribute start_z
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def start_z @start_z end |
#wait ⇒ Object
Returns the value of attribute wait
1749 1750 1751 |
# File 'docs/5_Battle_02_Visual.rb', line 1749 def wait @wait end |
Instance Method Details
#final_coords ⇒ Array<Float>
Returns [x, y, z] final coordinates.
1754 1755 |
# File 'docs/5_Battle_02_Visual.rb', line 1754 def final_coords end |
#from(camera) ⇒ CameraTranslationData
Return a new CameraTranslationData starting from the camera's current position
1759 1760 |
# File 'docs/5_Battle_02_Visual.rb', line 1759 def from(camera) end |
#start_coords ⇒ Array<Float>
Returns [x, y, z] start coordinates.
1751 1752 |
# File 'docs/5_Battle_02_Visual.rb', line 1751 def start_coords end |
#to(camera) ⇒ CameraTranslationData
Return a new CameraTranslationData ending at the camera's current position
1764 1765 |
# File 'docs/5_Battle_02_Visual.rb', line 1764 def to(camera) end |