Class: Raylib::Vector4

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib_main.rb

Overview

Vector4, 4 components

Class Method Summary collapse

Class Method Details

.create(x = 0, y = 0, z = 0, w = 0) ⇒ Object



103
104
105
106
107
108
109
110
# File 'lib/raylib.rb', line 103

def Vector4.create(x = 0, y = 0, z = 0, w = 0)
  instance = Vector4.new
  instance[:x] = x
  instance[:y] = y
  instance[:z] = z
  instance[:w] = w
  return instance
end