Class: Raylib::Float16
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Float16
- Defined in:
- lib/raylib/raymath/structs/float16.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create(v) ⇒ Object
8 9 10 11 12 |
# File 'lib/raylib/raymath/structs/float16.rb', line 8 def self.create(v) new.tap do |instance| instance[:v] = v end end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/raylib/raymath/structs/float16.rb', line 14 def to_s "Raylib::Float16##{object_id} v=#{v}" end |
#v ⇒ float[16]
Returns v.
20 |
# File 'lib/raylib/raymath/structs/float16.rb', line 20 def v = self[:v] |
#v=(new_v) ⇒ Object
Sets
23 24 25 |
# File 'lib/raylib/raymath/structs/float16.rb', line 23 def v=(new_v) self[:v] = new_v end |