Class: Battle::Visual3D::CameraTranslationData

Inherits:
Struct
  • Object
show all
Defined in:
docs/5_Battle_02_Visual.rb

Overview

Data class for camera translation entries

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#duration ⇒ Object

Returns the value of attribute duration

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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.

Returns:

  • (Array<Float>) —

    [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

Parameters:

  • camera (Object) —

    camera object responding to x, y, z

Returns:



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.

Returns:

  • (Array<Float>) —

    [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

Parameters:

  • camera (Object) —

    camera object responding to x, y, z

Returns:



1764
1765
# File 'docs/5_Battle_02_Visual.rb', line 1764

def to(camera)
end