Class: Raylib::Vector2
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::Vector2
- Defined in:
- lib/raylib_main.rb
Overview
Struct
Class Method Summary collapse
-
.create(x = 0, y = 0) ⇒ Object
Math helper.
Class Method Details
.create(x = 0, y = 0) ⇒ Object
Math helper
87 88 89 90 91 92 |
# File 'lib/raylib.rb', line 87 def Vector2.create(x = 0, y = 0) instance = Vector2.new instance[:x] = x instance[:y] = y return instance end |