Class: Raylib::Float16

Inherits:
FFI::Struct
  • Object
show all
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_sObject



14
15
16
# File 'lib/raylib/raymath/structs/float16.rb', line 14

def to_s
  "Raylib::Float16##{object_id} v=#{v}"
end

#vfloat[16]

Returns v.

Returns:

  • (float[16])

    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