Class: GLFW::Point
- Inherits:
-
Object
- Object
- GLFW::Point
- Defined in:
- lib/glfw/stubs.rb
Overview
Descibes the location of an object in 2D space.
Instance Attribute Summary collapse
-
#x ⇒ Integer
The position on the x-axis.
-
#y ⇒ Integer
The position on the y-axis.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
Creates a new instance of the Point class.
Constructor Details
#initialize(x, y) ⇒ Point
Creates a new instance of the GLFW::Point class.
211 212 |
# File 'lib/glfw/stubs.rb', line 211 def initialize(x, y) end |
Instance Attribute Details
#x ⇒ Integer
Returns the position on the x-axis.
201 202 203 |
# File 'lib/glfw/stubs.rb', line 201 def x @x end |
#y ⇒ Integer
Returns the position on the y-axis.
205 206 207 |
# File 'lib/glfw/stubs.rb', line 205 def y @y end |