Class: Raylib::Vector3
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Vector3
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Vector3, 3 components
Class Method Summary collapse
Instance Method Summary collapse
- #set(x, y, z) ⇒ Object
- #to_a ⇒ Object
- #x ⇒ Object
- #x=(v) ⇒ Object
- #y ⇒ Object
- #y=(v) ⇒ Object
- #z ⇒ Object
- #z=(v) ⇒ Object
Class Method Details
Instance Method Details
#set(x, y, z) ⇒ Object
124 125 126 127 128 129 |
# File 'lib/raylib_helper.rb', line 124 def set(x, y, z) self[:x] = x self[:y] = y self[:z] = z self end |
#to_a ⇒ Object
131 132 133 |
# File 'lib/raylib_helper.rb', line 131 def to_a [x, y, z] end |
#x ⇒ Object
441 |
# File 'lib/raylib_main.rb', line 441 def x = self[:x] |
#x=(v) ⇒ Object
442 |
# File 'lib/raylib_main.rb', line 442 def x=(v) self[:x] = v end |
#y ⇒ Object
443 |
# File 'lib/raylib_main.rb', line 443 def y = self[:y] |
#y=(v) ⇒ Object
444 |
# File 'lib/raylib_main.rb', line 444 def y=(v) self[:y] = v end |
#z ⇒ Object
445 |
# File 'lib/raylib_main.rb', line 445 def z = self[:z] |
#z=(v) ⇒ Object
446 |
# File 'lib/raylib_main.rb', line 446 def z=(v) self[:z] = v end |