Class: GLFW::Vec2
- Inherits:
-
Object
- Object
- GLFW::Vec2
- Defined in:
- lib/glfw/stubs.rb
Overview
Describes a 2-component floating point vector.
Instance Attribute Summary collapse
-
#x ⇒ Float
The position on the x-axis.
-
#y ⇒ Float
The position on the y-axis.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Vec2
constructor
Creates a new instance of the Vec2 class.
Constructor Details
#initialize(x, y) ⇒ Vec2
Creates a new instance of the GLFW::Vec2 class.
190 191 |
# File 'lib/glfw/stubs.rb', line 190 def initialize(x, y) end |
Instance Attribute Details
#x ⇒ Float
Returns the position on the x-axis.
180 181 182 |
# File 'lib/glfw/stubs.rb', line 180 def x @x end |
#y ⇒ Float
Returns the position on the y-axis.
184 185 186 |
# File 'lib/glfw/stubs.rb', line 184 def y @y end |