Class: Raylib::Vector4
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Vector4
- Defined in:
- lib/raylib_main.rb,
lib/raylib_helper.rb
Overview
Vector4, 4 components
Class Method Summary collapse
Instance Method Summary collapse
- #set(x, y, z, w) ⇒ Object
- #to_a ⇒ Object
- #w ⇒ Object
- #w=(v) ⇒ 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, w) ⇒ Object
145 146 147 148 149 150 151 |
# File 'lib/raylib_helper.rb', line 145 def set(x, y, z, w) self[:x] = x self[:y] = y self[:z] = z self[:w] = w self end |
#to_a ⇒ Object
153 154 155 |
# File 'lib/raylib_helper.rb', line 153 def to_a [x, y, z, w] end |
#w ⇒ Object
463 |
# File 'lib/raylib_main.rb', line 463 def w = self[:w] |
#w=(v) ⇒ Object
464 |
# File 'lib/raylib_main.rb', line 464 def w=(v) self[:w] = v end |
#x ⇒ Object
457 |
# File 'lib/raylib_main.rb', line 457 def x = self[:x] |
#x=(v) ⇒ Object
458 |
# File 'lib/raylib_main.rb', line 458 def x=(v) self[:x] = v end |
#y ⇒ Object
459 |
# File 'lib/raylib_main.rb', line 459 def y = self[:y] |
#y=(v) ⇒ Object
460 |
# File 'lib/raylib_main.rb', line 460 def y=(v) self[:y] = v end |
#z ⇒ Object
461 |
# File 'lib/raylib_main.rb', line 461 def z = self[:z] |
#z=(v) ⇒ Object
462 |
# File 'lib/raylib_main.rb', line 462 def z=(v) self[:z] = v end |