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
- #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
119 120 121 122 123 124 125 |
# File 'lib/raylib_helper.rb', line 119 def set(x, y, z, w) self[:x] = x self[:y] = y self[:z] = z self[:w] = w self end |
#w ⇒ Object
133 |
# File 'lib/raylib_helper.rb', line 133 def w() self[:w] end |
#w=(v) ⇒ Object
134 |
# File 'lib/raylib_helper.rb', line 134 def w=(v) self[:w] = v end |
#x ⇒ Object
127 |
# File 'lib/raylib_helper.rb', line 127 def x() self[:x] end |
#x=(v) ⇒ Object
128 |
# File 'lib/raylib_helper.rb', line 128 def x=(v) self[:x] = v end |
#y ⇒ Object
129 |
# File 'lib/raylib_helper.rb', line 129 def y() self[:y] end |
#y=(v) ⇒ Object
130 |
# File 'lib/raylib_helper.rb', line 130 def y=(v) self[:y] = v end |
#z ⇒ Object
131 |
# File 'lib/raylib_helper.rb', line 131 def z() self[:z] end |
#z=(v) ⇒ Object
132 |
# File 'lib/raylib_helper.rb', line 132 def z=(v) self[:z] = v end |